Boost logo

Boost Users :

Subject: Re: [Boost-users] can not compile nearest neighbors in d dimensions
From: Adam Wulkiewicz (adam.wulkiewicz_at_[hidden])
Date: 2014-04-16 10:40:11

Georgios Samaras wrote:
> I decided to choose dimensions 100 and 10000. With the second one,
> what mentioned above for compilation depth was happened.
> Thanks everybody for the help. This is enough for me. :)

To be clear. If you used the recursive template technique, you've
choosen all dimensions between 100 and 10000 must be compiled.

If you wanted to use only those two dimensions you should rather just
check the simple condition:

if ( dim == 100 )
   // do something for dimension 100
else if ( dim == 10000 )
   // something for dimension 10k

This way the compilation shouldn't fail.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at