mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-26 12:35:32 +00:00
Make test compile on older compilers.
This commit is contained in:
parent
93a970945e
commit
d8f1ee175c
@ -718,10 +718,10 @@ TEST(ActiveFormatterTest, ActionNotCalledOnError) {
|
|||||||
EXPECT_EQ(0, num_calls);
|
EXPECT_EQ(0, num_calls);
|
||||||
}
|
}
|
||||||
|
|
||||||
// The test doesn't compile on MSVC because the latter follows C++03 and
|
// The test doesn't compile on older compilers which follow C++03 and
|
||||||
// requires an accessible copy ctor when binding a temporary to a const
|
// require an accessible copy ctor when binding a temporary to a const
|
||||||
// reference.
|
// reference.
|
||||||
#ifndef _MSC_VER
|
#if __GNUC__ >= 4 && __GNUC_MINOR__ >= 7
|
||||||
TEST(ActiveFormatterTest, ArgLifetime) {
|
TEST(ActiveFormatterTest, ArgLifetime) {
|
||||||
// The following code is for testing purposes only. It is a definite abuse
|
// The following code is for testing purposes only. It is a definite abuse
|
||||||
// of the API and shouldn't be used in real applications.
|
// of the API and shouldn't be used in real applications.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user