Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spdlog
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
spdlog
Commits
ad779e48
Commit
ad779e48
authored
Nov 16, 2021
by
Charles Milette
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Attempt to solve ambiguous symbol on older MSVC
parent
701ef172
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
include/spdlog/common.h
include/spdlog/common.h
+16
-10
No files found.
include/spdlog/common.h
View file @
ad779e48
...
...
@@ -127,35 +127,33 @@ using err_handler = std::function<void(const std::string &err_msg)>;
namespace
fmt_lib
=
std
;
using
string_view_t
=
std
::
string_view
;
using
wstring_view_t
=
std
::
wstring_view
;
using
memory_buf_t
=
std
::
string
;
using
wmemory_buf_t
=
std
::
wstring
;
template
<
typename
...
Args
>
using
format_string_t
=
std
::
string_view
;
template
<
typename
...
Args
>
using
wformat_string_t
=
std
::
wstring_view
;
template
<
class
T
,
class
Char
=
char
>
struct
is_convertible_to_basic_format_string
:
std
::
integral_constant
<
bool
,
std
::
is_convertible
<
T
,
std
::
basic_string_view
<
Char
>>::
value
>
{};
# if defined(SPDLOG_WCHAR_FILENAMES) || defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)
using
wstring_view_t
=
std
::
wstring_view
;
using
memory_buf_t
=
std
::
wstring
;
template
<
typename
...
Args
>
using
wformat_string_t
=
std
::
wstring_view
;
# endif
#else
namespace
fmt_lib
=
fmt
;
using
string_view_t
=
fmt
::
basic_string_view
<
char
>
;
using
wstring_view_t
=
fmt
::
basic_string_view
<
wchar_t
>
;
using
memory_buf_t
=
fmt
::
basic_memory_buffer
<
char
,
250
>
;
using
wmemory_buf_t
=
fmt
::
basic_memory_buffer
<
wchar_t
,
250
>
;
template
<
typename
...
Args
>
using
format_string_t
=
fmt
::
format_string
<
Args
...
>
;
template
<
typename
...
Args
>
using
wformat_string_t
=
fmt
::
basic_format_string
<
wchar_t
,
fmt
::
type_identity_t
<
Args
>
...
>
;
template
<
class
T
>
using
remove_cvref_t
=
typename
std
::
remove_cv
<
typename
std
::
remove_reference
<
T
>::
type
>::
type
;
...
...
@@ -166,6 +164,14 @@ struct is_convertible_to_basic_format_string
:
std
::
integral_constant
<
bool
,
std
::
is_convertible
<
T
,
fmt
::
basic_string_view
<
Char
>>::
value
||
std
::
is_same
<
remove_cvref_t
<
T
>
,
fmt
::
basic_runtime
<
Char
>>::
value
>
{};
# if defined(SPDLOG_WCHAR_FILENAMES) || defined(SPDLOG_WCHAR_TO_UTF8_SUPPORT)
using
wstring_view_t
=
fmt
::
basic_string_view
<
wchar_t
>
;
using
wmemory_buf_t
=
fmt
::
basic_memory_buffer
<
wchar_t
,
250
>
;;
template
<
typename
...
Args
>
using
wformat_string_t
=
fmt
::
wformat_string
<
Args
...
>
;
# endif
#endif
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment