Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
spdlog
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
spdlog
Commits
2fa53877
Commit
2fa53877
authored
Oct 03, 2018
by
gabime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed static_assert
parent
b7a66594
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
logger_impl.h
include/spdlog/details/logger_impl.h
+1
-1
logger.h
include/spdlog/logger.h
+4
-0
No files found.
include/spdlog/details/logger_impl.h
View file @
2fa53877
...
@@ -175,7 +175,7 @@ inline void spdlog::logger::critical(const T &msg)
...
@@ -175,7 +175,7 @@ inline void spdlog::logger::critical(const T &msg)
}
}
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
static_assert
(
_WIN32
,
"SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows"
);
inline
void
wbuf_to_utf8buf
(
const
fmt
::
wmemory_buffer
&
wbuf
,
fmt
::
memory_buffer
&
target
)
inline
void
wbuf_to_utf8buf
(
const
fmt
::
wmemory_buffer
&
wbuf
,
fmt
::
memory_buffer
&
target
)
{
{
int
wbuf_size
=
static_cast
<
int
>
(
wbuf
.
size
());
int
wbuf_size
=
static_cast
<
int
>
(
wbuf
.
size
());
...
...
include/spdlog/logger.h
View file @
2fa53877
...
@@ -68,6 +68,9 @@ public:
...
@@ -68,6 +68,9 @@ public:
void
critical
(
const
char
*
fmt
,
const
Args
&
...
args
);
void
critical
(
const
char
*
fmt
,
const
Args
&
...
args
);
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
#ifdef SPDLOG_WCHAR_TO_UTF8_SUPPORT
#ifndef _WIN32
#error SPDLOG_WCHAR_TO_UTF8_SUPPORT only supported on windows
#else
template
<
typename
...
Args
>
template
<
typename
...
Args
>
void
log
(
level
::
level_enum
lvl
,
const
wchar_t
*
fmt
,
const
Args
&
...
args
);
void
log
(
level
::
level_enum
lvl
,
const
wchar_t
*
fmt
,
const
Args
&
...
args
);
...
@@ -88,6 +91,7 @@ public:
...
@@ -88,6 +91,7 @@ public:
template
<
typename
...
Args
>
template
<
typename
...
Args
>
void
critical
(
const
wchar_t
*
fmt
,
const
Args
&
...
args
);
void
critical
(
const
wchar_t
*
fmt
,
const
Args
&
...
args
);
#endif // _WIN32
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
#endif // SPDLOG_WCHAR_TO_UTF8_SUPPORT
template
<
typename
T
>
template
<
typename
T
>
...
...
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