CGAL:: Add Parallel_if_available_tag

This commit is contained in:
Andreas Fabri 2019-11-15 12:48:16 +01:00
parent a6957659fd
commit 1287db1138
1 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,7 @@ namespace CGAL {
struct Void {};
// Boolean_tag<bool> is a model of the Boost Integral Constant concept.
// https://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html
// https://www.boost.org/libs/mpl/doc/refmanual/integral-constant.html
template <bool b>
struct Boolean_tag {
typedef boost::mpl::integral_c_tag tag;
@ -58,6 +58,13 @@ struct Null_functor {
struct Sequential_tag {};
struct Parallel_tag : public Sequential_tag {};
#ifdef CGAL_LINKED_WITH_TBB
typedef CGAL::Parallel_tag Parallel_if_available_tag;
#else
typedef CGAL::Sequential_tag Parallel_if_available_tag;
#endif
// A function that asserts a specific compile time tag
// forcing its two arguments to have equal type.
template <class Base>