Compile fixes
[ACE_TAO.git] / ACE / tests / Compiler_Features_27_Test.cpp
blob36781025044d9b852c4c9a0ece0e45d44603d5d4
1 /**
2 * This program checks if the compiler doesn't have a certain bug
3 * that we encountered when testing C++11 features
4 */
6 #include "test_config.h"
8 #include <string>
10 class Foo
12 public:
13 Foo () = default;
16 void operator <<= (Foo&, std::string &&)
20 int
21 run_main (int, ACE_TCHAR *[])
23 ACE_START_TEST (ACE_TEXT("Compiler_Features_27_Test"));
25 // Visual Studio 2015 has a small issue with this construct
26 #if !(defined (_MSC_VER) && (_MSC_VER < 1910))
27 Foo any;
28 any <<= std::move("abc");
29 #endif
31 ACE_END_TEST;
33 return 0;