We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b60e0d5 commit 2c6c539Copy full SHA for 2c6c539
app/src/include/firebase/internal/common.h
@@ -23,10 +23,12 @@
23
#include <utility>
24
25
// Move operators use rvalue references, which are a C++11 extension.
26
+// Also, Visual Studio 2010 and later actually support move operators despite
27
+// reporting __cplusplus to be 199711L, so explicitly check for that.
28
// Also, stlport doesn't implement std::move().
-#if __cplusplus >= 201103L && !defined(_STLPORT_VERSION)
29
+#if (__cplusplus >= 201103L || _MSC_VER >= 1600) && !defined(_STLPORT_VERSION)
30
#define FIREBASE_USE_MOVE_OPERATORS
-#endif // __cplusplus >= 201103L && !defined(_STLPORT_VERSION)
31
+#endif
32
33
// stlport doesn't implement std::function.
34
#if !defined(_STLPORT_VERSION)
0 commit comments