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
5adb9f7a
Commit
5adb9f7a
authored
May 15, 2013
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for noexcept
parent
3638eeee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
format.h
format.h
+8
-2
No files found.
format.h
View file @
5adb9f7a
...
...
@@ -41,6 +41,12 @@
#include <string>
#include <sstream>
// Define FMT_USE_NOEXCEPT to make format use noexcept (C++11 feature).
#if FMT_USE_NOEXCEPT || \
(defined(__has_feature) && __has_feature(cxx_noexcept))
# define FMT_NOEXCEPT(expr) noexcept(expr)
#endif
namespace
fmt
{
namespace
internal
{
...
...
@@ -957,7 +963,7 @@ class BasicFormatter : public BasicWriter<Char> {
custom
.
format
=
&
internal
::
FormatCustomArg
<
Char
,
T
>
;
}
~
Arg
()
{
~
Arg
()
FMT_NOEXCEPT
(
false
)
{
// Format is called here to make sure that a referred object is
// still alive, for example:
//
...
...
@@ -1204,7 +1210,7 @@ class TempFormatter : public internal::ArgInserter<Char> {
/**
Performs the actual formatting, invokes the action and destroys the object.
*/
~
TempFormatter
()
{
~
TempFormatter
()
FMT_NOEXCEPT
(
false
)
{
if
(
this
->
formatter
())
action_
(
*
this
->
Format
());
}
...
...
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