Commit 26164748 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by facebook-github-bot-1

Drop support for GCC < 4.8 in folly/test/FBStringTest.cpp

Summary: [Folly] Drop support for GCC < 4.8 in folly/test/FBStringTest.cpp.

Can't stay indefinitely backcompat with older compilers.

Reviewed By: @tudor

Differential Revision: D2422425
parent b6a63714
......@@ -1291,15 +1291,12 @@ TEST(FBString, testFrontBack) {
TEST(FBString, noexcept) {
EXPECT_TRUE(noexcept(fbstring()));
// std::move is not marked noexcept in gcc 4.6, sigh
#if __GNUC_PREREQ(4, 7)
fbstring x;
EXPECT_FALSE(noexcept(fbstring(x)));
EXPECT_TRUE(noexcept(fbstring(std::move(x))));
fbstring y;
EXPECT_FALSE(noexcept(y = x));
EXPECT_TRUE(noexcept(y = std::move(x)));
#endif
}
TEST(FBString, iomanip) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment