Skip to content

Commit 1156767

Browse files
committed
provide not implemented message in default_strategy
1 parent b9a3660 commit 1156767

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

include/boost/geometry/extensions/random/strategies/uniform_point_distribution.hpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#ifndef BOOST_GEOMETRY_EXTENSIONS_RANDOM_STRATEGIES_UNIFORM_POINT_DISTRIBUTION_HPP
1010
#define BOOST_GEOMETRY_EXTENSIONS_RANDOM_STRATEGIES_UNIFORM_POINT_DISTRIBUTION_HPP
1111

12+
#include <boost/mpl/assert.hpp>
13+
#include <boost/mpl/int.hpp>
14+
1215
#include <boost/geometry/core/coordinate_dimension.hpp>
1316
#include <boost/geometry/core/cs.hpp>
1417
#include <boost/geometry/core/tag.hpp>
@@ -48,7 +51,13 @@ template
4851
>::type
4952
>
5053
struct default_strategy
51-
{};
54+
{
55+
BOOST_MPL_ASSERT_MSG
56+
(
57+
false, NOT_IMPLEMENTED_FOR_THIS_TYPE
58+
, (types<Tag, MultiOrSingle, boost::mpl::int_<Dim>>)
59+
);
60+
};
5261

5362
}}} // namespace strategy::uniform_point_distribution::services
5463

0 commit comments

Comments
 (0)