Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fmt
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
fmt
Commits
9cb02aaa
Commit
9cb02aaa
authored
Jun 25, 2022
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix UDLs
parent
e6d478f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
12 deletions
+2
-12
doc/api.rst
doc/api.rst
+1
-1
doc/build.py
doc/build.py
+1
-1
include/fmt/xchar.h
include/fmt/xchar.h
+0
-5
test/xchar-test.cc
test/xchar-test.cc
+0
-5
No files found.
doc/api.rst
View file @
9cb02aaa
...
@@ -313,7 +313,7 @@ The following user-defined literals are defined in ``fmt/format.h``.
...
@@ -313,7 +313,7 @@ The following user-defined literals are defined in ``fmt/format.h``.
.. doxygenfunction:: operator""_format(const char *s, size_t n) -> detail::udl_formatter<char>
.. doxygenfunction:: operator""_format(const char *s, size_t n) -> detail::udl_formatter<char>
.. doxygenfunction:: operator""_a
(
)
.. doxygenfunction:: operator""_a
const char *s, size_t
)
Utilities
Utilities
---------
---------
...
...
doc/build.py
View file @
9cb02aaa
...
@@ -68,7 +68,7 @@ def build_docs(version='dev', **kwargs):
...
@@ -68,7 +68,7 @@ def build_docs(version='dev', **kwargs):
FMT_USE_RVALUE_REFERENCES=1 \
FMT_USE_RVALUE_REFERENCES=1 \
FMT_USE_USER_DEFINED_LITERALS=1 \
FMT_USE_USER_DEFINED_LITERALS=1 \
FMT_USE_ALIAS_TEMPLATES=1 \
FMT_USE_ALIAS_TEMPLATES=1 \
FMT_USE_NONTYPE_TEMPLATE_
PARAMETER
S=1 \
FMT_USE_NONTYPE_TEMPLATE_
ARG
S=1 \
FMT_API= \
FMT_API= \
"FMT_BEGIN_NAMESPACE=namespace fmt {{" \
"FMT_BEGIN_NAMESPACE=namespace fmt {{" \
"FMT_END_NAMESPACE=}}" \
"FMT_END_NAMESPACE=}}" \
...
...
include/fmt/xchar.h
View file @
9cb02aaa
...
@@ -47,11 +47,6 @@ constexpr format_arg_store<wformat_context, Args...> make_wformat_args(
...
@@ -47,11 +47,6 @@ constexpr format_arg_store<wformat_context, Args...> make_wformat_args(
}
}
inline
namespace
literals
{
inline
namespace
literals
{
constexpr
auto
operator
""
_format
(
const
wchar_t
*
s
,
size_t
n
)
->
detail
::
udl_formatter
<
wchar_t
>
{
return
{{
s
,
n
}};
}
#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_ARGS
#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_ARGS
constexpr
detail
::
udl_arg
<
wchar_t
>
operator
""
_a
(
const
wchar_t
*
s
,
size_t
)
{
constexpr
detail
::
udl_arg
<
wchar_t
>
operator
""
_a
(
const
wchar_t
*
s
,
size_t
)
{
return
{
s
};
return
{
s
};
...
...
test/xchar-test.cc
View file @
9cb02aaa
...
@@ -185,11 +185,6 @@ TEST(format_test, wide_format_to_n) {
...
@@ -185,11 +185,6 @@ TEST(format_test, wide_format_to_n) {
}
}
#if FMT_USE_USER_DEFINED_LITERALS
#if FMT_USE_USER_DEFINED_LITERALS
TEST
(
xchar_test
,
format_udl
)
{
using
namespace
fmt
::
literals
;
EXPECT_EQ
(
L"{}c{}"
_format
(
L"ab"
,
1
),
fmt
::
format
(
L"{}c{}"
,
L"ab"
,
1
));
}
TEST
(
xchar_test
,
named_arg_udl
)
{
TEST
(
xchar_test
,
named_arg_udl
)
{
using
namespace
fmt
::
literals
;
using
namespace
fmt
::
literals
;
auto
udl_a
=
auto
udl_a
=
...
...
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