Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rebase master. #1

Merged
merged 31 commits into from
Jan 25, 2020
Merged

Rebase master. #1

merged 31 commits into from
Jan 25, 2020

Commits on Jan 12, 2020

  1. Improve join docs

    vitaut committed Jan 12, 2020
    Configuration menu
    Copy the full SHA
    65ac626 View commit details
    Browse the repository at this point in the history

Commits on Jan 14, 2020

  1. Use FMT_NOEXCEPT instead of noexcept directly

    Otherwise breaks on compilers without noexcept support
    tohammer authored and vitaut committed Jan 14, 2020
    Configuration menu
    Copy the full SHA
    77165fd View commit details
    Browse the repository at this point in the history

Commits on Jan 15, 2020

  1. Fix for older versions of intel compiler

    The intel-17 and intel-18 compilers seem to require that `u` be `const`:
    ```
    /src/fmt/format.h(226): warning #437: reference to local variable of enclosing function is not allowed
            char data[sizeof(u)];
    ```
    If `u` is declared as `const auto u =1u` instead of just `auto u=1u`, the file compiles with no warnings.
    gsjaardema authored and vitaut committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    ae3ea15 View commit details
    Browse the repository at this point in the history
  2. Use C++11-compatible operations

    The `std::is_base_of<T,U>()` and `std::is_reference<T>()` member functions were added in C++14.  To maintain C++11 compatibility, use the `::value` instead.
    
    Current code fails on intel-17 and other compilers if using strict C++11
    gsjaardema authored and vitaut committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    55b6130 View commit details
    Browse the repository at this point in the history
  3. Work-around for nvcc

    The nvcc compiler (at least up to 9.2) defines `__SIZEOF_INT128__`, but doesn't support 128-bit integers on device code:
    ```
    error: "fmt::v6::format_arg_store<fmt::v6::basic_format_context<std::back_insert_iterator<fmt::v6::internal::buffer<char>>, char>, const char *, int, const char *>" contains a 128-bit integer, which is not supported in device code
    ```
    gsjaardema authored and vitaut committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    4bbe57c View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    c8dd9cc View commit details
    Browse the repository at this point in the history
  5. Use C++11 compatible std::is_same operations

    The `operator()` member function of `std::is_same` was added in C++14.  For C++11, the `::value` needs to be used instead.
    gsjaardema authored and vitaut committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    40638a7 View commit details
    Browse the repository at this point in the history
  6. Avoid namespace clash for fmt

    ## Problem
    
    In the case of an existing `fmt` namespace (in my project this looks like `Project::fmt`) it is possible to get a namespace clash in debug builds (MSVC 2017)
    
    ## Proposed Solution
    
    When referencing `fmt` internally, be explicit that it is relative to the global namespace using `::fmt`
    lefticus authored and vitaut committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    4ccbe4b View commit details
    Browse the repository at this point in the history
  7. Remove redundant braces

    vitaut committed Jan 15, 2020
    Configuration menu
    Copy the full SHA
    1f11070 View commit details
    Browse the repository at this point in the history

Commits on Jan 17, 2020

  1. Add vcpkg installation instructions

    JackBoosY authored and vitaut committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    0f0e5dd View commit details
    Browse the repository at this point in the history
  2. Correct display format

    JackBoosY authored and vitaut committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    ffd5f34 View commit details
    Browse the repository at this point in the history
  3. fix url link

    JackBoosY authored and vitaut committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    b124e3e View commit details
    Browse the repository at this point in the history
  4. re-fix url link

    JackBoosY authored and vitaut committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    11cc290 View commit details
    Browse the repository at this point in the history
  5. update format

    JackBoosY authored and vitaut committed Jan 17, 2020
    Configuration menu
    Copy the full SHA
    1bd4f54 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2020

  1. Move docs to the proper place

    vitaut committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    06e437f View commit details
    Browse the repository at this point in the history
  2. Add a locale example

    vitaut committed Jan 18, 2020
    Configuration menu
    Copy the full SHA
    bd5f903 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9bd9738 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    75765bf View commit details
    Browse the repository at this point in the history

Commits on Jan 19, 2020

  1. Configuration menu
    Copy the full SHA
    e5f2f8c View commit details
    Browse the repository at this point in the history
  2. Bump version

    vitaut committed Jan 19, 2020
    Configuration menu
    Copy the full SHA
    8a3a817 View commit details
    Browse the repository at this point in the history

Commits on Jan 20, 2020

  1. Test invalid fill

    vitaut committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    b4218aa View commit details
    Browse the repository at this point in the history
  2. Update fill docs

    vitaut committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    7800173 View commit details
    Browse the repository at this point in the history
  3. Add more examples

    vitaut committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    47d3968 View commit details
    Browse the repository at this point in the history
  4. Add namespaces

    vitaut committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    a844d7a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    fd1cabe View commit details
    Browse the repository at this point in the history
  6. Add locale example

    vitaut committed Jan 20, 2020
    Configuration menu
    Copy the full SHA
    0b2eb65 View commit details
    Browse the repository at this point in the history

Commits on Jan 22, 2020

  1. Fix so can work without locale defined

    If `FMT_STATIC_THOUSANDS_SEPARATOR` defined, then locale is not included or defined, so this call will be unresolved.  I think this is the correct fix based on the code in `format-inl.h` and `format.h`
    gsjaardema authored and vitaut committed Jan 22, 2020
    Configuration menu
    Copy the full SHA
    25d6916 View commit details
    Browse the repository at this point in the history

Commits on Jan 23, 2020

  1. fix interal compiler error when building with mingw

    dspc-douglas authored and vitaut committed Jan 23, 2020
    Configuration menu
    Copy the full SHA
    9fc4161 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    419db8b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    09a1324 View commit details
    Browse the repository at this point in the history

Commits on Jan 24, 2020

  1. Fix formatting std::chrono::duration types to wide strings (#1533)

    * Fix formatting chrono durations to wide strings
    
    * Make format buffers const correct
    
    * Add FormatWide chrono test case
    
    * Fix incorrect wide encoding of 'µs'
    I think might be a source file encoding issue, so I used \u00B5 instead.
    
    * Update FormatWide test to use proper encoding of µs
    
    * Revert changes to format_localized's parameters
    
    * Use different overload of `std::time_put<T>::put` to avoid needing a format string
    
    * Use utf8_to_utf16 instead of having redundant overloads of get_units
    
    * Revert some minor changes
    
    * Remove FMT_CONSTEXPR from expression
    
    This should hopefully fix compilation on VS <2019
    
    * Make suggested changes from code review
    
    * Run clang-format on chrono.h
    
    * Make sure unit isn't null before constructing a string_view from it
    zeffy authored and vitaut committed Jan 24, 2020
    Configuration menu
    Copy the full SHA
    1acb73f View commit details
    Browse the repository at this point in the history