I increased and it compile. However, I am -again- not able to continue,
because now it says point not declared..
#include
#include
#include
namespace bg = boost::geometry;
namespace bgi = boost::geometry::index;
template <int CompileTimeDimension>
void do_something()
{
typedef bg::model::point point;
bgi::rtree > rt;
}
template
struct fill
{
template <typename Point>
static void apply(Point& p, typename bg::coordinate_type<Point>::type
const& v)
{
bg::set<D>(p, v);
fill::apply(p, v);
}
};
template
struct fill
{
template <typename Point>
static void apply(Point&, typename bg::coordinate_type<Point>::type
const&) {}
};
int main()
{
int M;
M = 100;
if ( M == 100 )
do_something<100>();
else if ( M == 10000 )
do_something<10000>();
else
std::cerr << "invalid dimension!";
point p;
if ( M == 100 )
fill<0, 100>::apply(p, 5);
else if ( M == 10000 )
fill<0, 10000>::apply(p, 5);
else
std::cerr << "invalid dimension!";
return 0;
}