]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/regex/test/test_windows_defs_2.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / regex / test / test_windows_defs_2.cpp
diff --git a/ceph/src/boost/libs/regex/test/test_windows_defs_2.cpp b/ceph/src/boost/libs/regex/test/test_windows_defs_2.cpp
new file mode 100644 (file)
index 0000000..8707b36
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+*
+* Copyright (c) 2021
+* John Maddock
+*
+* Use, modification and distribution are subject to the
+* Boost Software License, Version 1.0. (See accompanying file
+* LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+*
+*/
+
+#if defined(_WIN32) && !defined(BOOST_REGEX_NO_W32)
+//
+// Make sure our forward declarations match those in windows.h:
+//
+
+#define NO_STRICT
+
+#include <boost/regex.hpp>
+#include <windows.h>
+
+void test_proc()
+{
+   std::string text, re;
+   boost::regex exp(re);
+   regex_match(text, exp);
+}
+
+#endif