Skip to content

Commit

Permalink
make fuzz_direct_parse build with C++11
Browse files Browse the repository at this point in the history
  • Loading branch information
grisumbras committed Oct 17, 2024
1 parent 3804d73 commit 7088b07
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fuzzing/fuzz_direct_parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
// Official repository: https://github.com/boostorg/json
//

#include <boost/json.hpp>

#if !defined(BOOST_DESCRIBE_CXX14)

#include <boost/config/pragma_message.hpp>

BOOST_PRAGMA_MESSAGE( "This example requires C++14" )

int main() {}

#else

#include <boost/json/parse_into.hpp>
#include <boost/variant2/variant.hpp>
#include <boost/describe.hpp>
Expand Down Expand Up @@ -82,3 +94,4 @@ LLVMFuzzerTestOneInput(
return 0;
}

#endif // !defined(BOOST_DESCRIBE_CXX14)

0 comments on commit 7088b07

Please sign in to comment.