Skip to content

Commit 3c04cc6

Browse files
committed
make fuzz_direct_parse build with C++11
1 parent 6071cd5 commit 3c04cc6

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

fuzzing/fuzz_direct_parse.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
// Official repository: https://github.com/boostorg/json
77
//
88

9+
#include <boost/json.hpp>
10+
11+
#if !defined(BOOST_DESCRIBE_CXX14)
12+
13+
#include <boost/config/pragma_message.hpp>
14+
15+
BOOST_PRAGMA_MESSAGE( "This example requires C++14" )
16+
17+
int main() {}
18+
19+
#else
20+
921
#include <boost/json/parse_into.hpp>
1022
#include <boost/variant2/variant.hpp>
1123
#include <boost/describe.hpp>
@@ -82,3 +94,4 @@ LLVMFuzzerTestOneInput(
8294
return 0;
8395
}
8496

97+
#endif // !defined(BOOST_DESCRIBE_CXX14)

0 commit comments

Comments
 (0)