I'm trying to use boost in oder to calculate a factorial. I don't know why, but VS2013 show me a compiling error.
Anyone have some ideas please ?
int nLgCombi = 12;
std::vector<std::string> NbrToPlay;
...
int ne = NbrToPlay.size();
int calcnc = boost::math::factorial<int>(ne + 1) / boost::math::factorial<int>(nLgCombi);
Error message :
Erreur 1 error C2338: !boost::is_integral::value d:\users\XXXXXX\downloads\boost_1_55_0b1\boost_1_55_0b1\boost\math\special_functions\factorials.hpp 32 1 APPS
EDIT :
Code replace int by double:
double dcalcnc = boost::math::factorial<double>(ne +1) / boost::math::factorial<double>(nLgCombi);
Error message :
Erreur 1 error C2039: 'assert_not_arg' : n'est pas membre de 'boost::mpl' d:\users\XXXXX\downloads\boost_1_55_0b1\boost_1_55_0b1\boost\mpl\aux_\preprocessed\plain\arg.hpp 45 1
Erreur 2 error C3861: 'assert_not_arg' : identificateur introuvable d:\users\XXXXX\downloads\boost_1_55_0b1\boost_1_55_0b1\boost\mpl\aux_\preprocessed\plain\arg.hpp 45 1
Thanks a lot,
Best regards,
Nixeus