Skip to content

Conversation

@Pro
Copy link

@Pro Pro commented Jun 5, 2023

This MR simply merges the current spdlog v1.11.0 version into the structured_v0 branch.

There were two small MR conflicts, mainly related to newline/code style.

This also includes #2 to fix the build

vnepogodin and others added 30 commits December 19, 2021 15:04
This reverts commit 7e95963.
Reduce warnings with pedantic compiler `-Wuseless-cast`
`std::span` does not have `const_iterator`. this prevents `to_hex` from
being used with `std::span<>`. to fix this, we provide an explicit
overload.

compare: https://cplusplus.github.io/LWG/issue3320
spdlog: fmt - support `std::span` in `to_hex`
Reset current size if rotated files on open
spdlog::level::level_enum cannot be forward-declared at present, as
the definition does not specify an underlying type.

To allow users to make use of <spdlog/fwd.h> to refer to
level::level_enum without pulling in all of <spdlog/common.h> (which
can be quite costly), specify an underlying type (int) for
level::level_enum, then add a forward-declaration for it to
spdlog/fwd.h.

Note this required explicitly casting level_enum to size_t within ansicolor_sink due to sign-conversion errors:

    implicit conversion changes signedness: 'const level::level_enum' to 'std::__1::array::size_type' (aka 'unsigned long') [-Wsign-conversion]

It would appear that an enum with an unspecified underlying type is in
some kind of superposition - it can be treated as both signed _and_
unsigned - using an underlying type of 'unsigned int' triggers even
more warnings of this kind...
Allow forward-declaration of level_enum
Now only getting time if pattern_formatter needs it
On Line 83 someone probably misclicked tab just removed that tab
added a few missing files/directories to the gitignore
gabime and others added 29 commits October 19, 2022 22:37
…t 9.1.x (gabime#2517)

* Use 'SPDLOG_FMT_RUNTIME' to fix compilation error throwed MSVC and fmt 9.1.x

* Fix gabime#2512
Added fatal warnings option to appveyor
Not needed since fmt 9.x
This only fires when compiling spdlog for MSVC with gcc and main-app with clang:

spdlog.lib -> export -> ... class spdlog::details::context_data ...
target     <- import <- ... struct spdlog::details::context_data ...

lld-link: error: undefined symbol: class std::shared_ptr<struct spdlog::details::context_data> __cdecl spdlog::snapshot_context_fields(void)
@Pro Pro closed this by deleting the head repository Jul 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.