1>------ Build started: Project: ex12.2, Configuration: Debug Win32 ------ 1>Compiling... 1>PathDependentExoticOption.cpp 1>c:\moondragon\distancelearning\cpp\code\ex12.2\pathdependentexoticoption.cpp(82) : error C3203: 'uniform_int' : unspecialized class template can't be used as a template argument for template parameter 'UniformRandomNumberGenerator', expected a real type 1>c:\moondragon\distancelearning\cpp\code\ex12.2\pathdependentexoticoption.cpp(82) : error C2955: 'boost::uniform_int' : use of class template requires template argument list 1> c:\boost\boost_1_39\boost\random\uniform_int.hpp(39) : see declaration of 'boost::uniform_int' 1>c:\moondragon\distancelearning\cpp\code\ex12.2\pathdependentexoticoption.cpp(82) : error C2990: 'BoostRandom' : non-class template has already been declared as a class template 1> c:\designcpp\include\boostrandom.h(9) : see declaration of 'BoostRandom' 1>c:\moondragon\distancelearning\cpp\code\ex12.2\pathdependentexoticoption.cpp(82) : error C2514: 'BoostRandom' : class has no constructors 1> c:\designcpp\include\boostrandom.h(9) : see declaration of 'BoostRandom' 1>Build log was saved at "file://c:\MoonDragon\DistanceLearning\cpp\code\ex12.2\Debug\BuildLog.htm" 1>ex12.2 - 4 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |
|
|
|
|
boost::uniform_int<int>
1>------ Build started: Project: ex12.2, Configuration: Debug Win32 ------ 1>Compiling... 1>PathDependentExoticOption.cpp 1>c:\designcpp\include\boostrandom.h(33) : error C2664: 'boost::random_number_generator<UniformRandomNumberGenerator,IntType>::random_number_generator(boost::uniform_int<int> &)' : cannot convert parameter 1 from 'unsigned long' to 'boost::uniform_int<IntType> &' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1> and 1> [ 1> IntType=int 1> ] 1> c:\designcpp\include\boostrandom.h(32) : while compiling class template member function 'BoostRandom<UniformRandomNumberGenerator,IntType>::BoostRandom(unsigned long,unsigned long)' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1> c:\moondragon\distancelearning\cpp\code\ex12.2\pathdependentexoticoption.cpp(82) : see reference to class template instantiation 'BoostRandom<UniformRandomNumberGenerator,IntType>' being compiled 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1>c:\designcpp\include\boostrandom.h(36) : error C2039: 'Max' : is not a member of 'boost::random_number_generator<UniformRandomNumberGenerator,IntType>' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1>c:\designcpp\include\boostrandom.h(49) : error C2039: 'GetOneRandomInteger' : is not a member of 'boost::random_number_generator<UniformRandomNumberGenerator,IntType>' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1> c:\designcpp\include\boostrandom.h(45) : while compiling class template member function 'void BoostRandom<UniformRandomNumberGenerator,IntType>::GetUniforms(MJArray &)' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1>c:\designcpp\include\boostrandom.h(67) : error C2039: 'SetSeed' : is not a member of 'boost::random_number_generator<UniformRandomNumberGenerator,IntType>' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1> c:\designcpp\include\boostrandom.h(63) : while compiling class template member function 'void BoostRandom<UniformRandomNumberGenerator,IntType>::SetSeed(unsigned long)' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1>c:\designcpp\include\boostrandom.h(74) : error C2039: 'SetSeed' : is not a member of 'boost::random_number_generator<UniformRandomNumberGenerator,IntType>' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1> c:\designcpp\include\boostrandom.h(71) : while compiling class template member function 'void BoostRandom<UniformRandomNumberGenerator,IntType>::Reset(void)' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1>c:\designcpp\include\boostrandom.h(82) : error C2039: 'SetSeed' : is not a member of 'boost::random_number_generator<UniformRandomNumberGenerator,IntType>' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1> c:\designcpp\include\boostrandom.h(78) : while compiling class template member function 'void BoostRandom<UniformRandomNumberGenerator,IntType>::ResetDimensionality(unsigned long)' 1> with 1> [ 1> UniformRandomNumberGenerator=boost::uniform_int<int>, 1> IntType=long 1> ] 1>Build log was saved at "file://c:\MoonDragon\DistanceLearning\cpp\code\ex12.2\Debug\BuildLog.htm" 1>ex12.2 - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== |