diff options
author | Alec Thomas <alec@swapoff.org> | 2012-10-19 14:48:55 -0400 |
---|---|---|
committer | Alec Thomas <alec@swapoff.org> | 2012-10-19 14:48:55 -0400 |
commit | e88636d40577776db26d34d8adacddbba5bd6da8 (patch) | |
tree | 22042c46c03538998a87b4bc7ccbf435d5dea1ba /cxx11/demo.cpp | |
parent | 92dc19d8a0eaea4aac6327490695420deb226218 (diff) |
A bunch of minor build fixes. Started README.
Diffstat (limited to 'cxx11/demo.cpp')
-rw-r--r-- | cxx11/demo.cpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/cxx11/demo.cpp b/cxx11/demo.cpp new file mode 100644 index 0000000..782681b --- /dev/null +++ b/cxx11/demo.cpp @@ -0,0 +1,23 @@ +
+#include <iostream>
+
+int main()
+{
+ std::cout << "Testing\n";
+ std::cout << "Has static_assert: " <<
+#ifdef HAS_CXX11_STATIC_ASSERT
+ "yes :)"
+#else
+ "no"
+#endif
+ << "\n";
+ std::cout << "Has variadic templates: " <<
+#ifdef HAS_CXX11_VARIADIC_TEMPLATES
+ "yes :)"
+#else
+ "no"
+#endif
+ << "\n";
+ return 0;
+}
+
|