I am using Dev-C++ with boost 1.34.1,the program is the following:
.......................
typedef std::map IIPrimemap;
IIPrimemap primemapvec;
# define BetaKGre2 1
# define EqualToOne 2
#define ProductOfKPrime 3
.........................
(switch_statement(_1,
case_statement<BetaKGre2>
(var(result)=0),
case_statement<EqualToOne>
(var(result)=1),
case_statement<ProductOfKPrime>
(var(result)=bind(static_cast(std::pow),
constant(-1.0),bind(&IIPrimemap::size,var(primemapvec)))),
default_statement
( var(result)=234)
))(switchvalue);
the complier told me no errors.But the linker told me that:
nstantiated from `Arg::sig(std::pow),
constant(-1.0),bind(&IIPrimemap::size,var(primemapvec)))),
otherwise the program do not have such problems. How can I solve it?
Can anyone with kindness help me?