Skip to content

Commit

Permalink
Add Boost version check to config.hpp
Browse files Browse the repository at this point in the history
This adds a compile-time check to config.hpp which ensures
that the miniumum supported Boost version (1.48) is found.
  • Loading branch information
kylelutz committed Jan 21, 2014
1 parent dc20f09 commit 47922aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/boost/compute/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,14 @@
#define BOOST_COMPUTE_CONFIG_HPP

#include <boost/config.hpp>
#include <boost/version.hpp>
#include <boost/compute/cl.hpp>

// check for minimum required boost version
#if BOOST_VERSION < 104800
#error Boost.Compute requires Boost version 1.48 or later
#endif

// the BOOST_COMPUTE_DETAIL_NO_VARIADIC_TEMPLATES macro is defined
// if the compiler does not *fully* support variadic templates
#if defined(BOOST_NO_VARIADIC_TEMPLATES) || \
Expand Down

0 comments on commit 47922aa

Please sign in to comment.