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
00869201
Commit
00869201
authored
Dec 16, 2012
by
Victor Zverovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test commit.
parent
89d5e0c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
format_test.cc
format_test.cc
+2
-2
No files found.
format_test.cc
View file @
00869201
...
...
@@ -731,8 +731,8 @@ TEST(ActiveFormatterTest, ArgLifetime) {
const
fmt
::
ActiveFormatter
<
fmt
::
Ignore
>
&
af
=
fmt
::
Format
(
"{0}"
);
const_cast
<
fmt
::
ActiveFormatter
<
fmt
::
Ignore
>&>
(
af
)
<<
std
::
string
(
"test"
);
// String object passed as an argument to ActiveFormatter has
// been destroyed, but ArgInserter dtor hasn't been called yet.
// But that's OK since the Arg's dtor takes care of this and
// been destroyed, but ArgInserter d
estruc
tor hasn't been called yet.
// But that's OK since the Arg's d
estruc
tor takes care of this and
// calls Format.
}
#endif
...
...
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