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
434eb916
Unverified
Commit
434eb916
authored
Jul 04, 2018
by
Victor Zverovich
Committed by
GitHub
Jul 04, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update README.rst
parent
09d94162
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
README.rst
README.rst
+6
-6
No files found.
README.rst
View file @
434eb916
...
...
@@ -85,15 +85,15 @@ Format strings can be checked at compile time:
.. code::
$
g++ -Iinclude test.cc -std=c++14
$
c++ -Iinclude -std=c++14 test.cc
...
test.cc:
2:22: note: in instantiation of function template specialization 'fmt
::format<S, int>' requested here
std::string s = f
mt::f
ormat(fmt("{2}"), 42);
^
include/fmt/core.h:7
49
:19: note: non-constexpr function 'on_error' cannot be used in a constant expression
test.cc:
3:17: note: in instantiation of function template specialization 'fmt::v5
::format<S, int>' requested here
std::string s = format(fmt("{2}"), 42);
^
include/fmt/core.h:7
78
:19: note: non-constexpr function 'on_error' cannot be used in a constant expression
ErrorHandler::on_error(message);
^
include/fmt/format.h:2
081
:16: note: in call to '&checker.context_->on_error(&"argument index out of range"[0])'
include/fmt/format.h:2
226
:16: note: in call to '&checker.context_->on_error(&"argument index out of range"[0])'
context_.on_error("argument index out of range");
^
...
...
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