Skip to content

Commit 26f1dc4

Browse files
committed
temporary code to check VS compliance wrt function qualifiers
1 parent d35128e commit 26f1dc4

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/mp_lambda.cpp

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,26 @@
77
// http://www.boost.org/LICENSE_1_0.txt
88

99

10+
#if 1
11+
#include <boost/mp11/detail/config.hpp>
12+
13+
#if BOOST_MP11_MSVC
14+
#define CONCAT_(A, B) A ## B
15+
#define CONCAT(A, B) CONCAT_(A, B)
16+
#define MSVC_VERSION CONCAT(msvc_version_, BOOST_MP11_MSVC)
17+
18+
#pragma deprecated(MSVC_VERSION)
19+
#pragma warning(default: 4995)
20+
21+
static int MSVC_VERSION = 0;
22+
#endif
23+
24+
int main()
25+
{
26+
using type = int() const;
27+
}
28+
29+
#else
1030
#include <boost/mp11/lambda.hpp>
1131
#include <boost/mp11/detail/config.hpp>
1232
#include <boost/core/lightweight_test_trait.hpp>
@@ -142,3 +162,4 @@ int main()
142162
143163
return boost::report_errors();
144164
}
165+
#endif

0 commit comments

Comments
 (0)