K
Kaushal
#include <iostream>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/find.hpp>
using namespace std ;
using namespace boost ;
template <typename numericTypes>
struct evalThis
{
void operator()()
{
typedef mpl::find<numericTypes, char>::type iter ; //
ERROR : error: too few template-parameter-lists
}
} ;
int main()
{
typedef mpl::vector<int, float, char, double, long>
myNumericTypes ;
evalThis<myNumericTypes> myObj ;
myObj.operator()() ;
return 0 ;
}
#include <boost/mpl/vector.hpp>
#include <boost/mpl/find.hpp>
using namespace std ;
using namespace boost ;
template <typename numericTypes>
struct evalThis
{
void operator()()
{
typedef mpl::find<numericTypes, char>::type iter ; //
ERROR : error: too few template-parameter-lists
}
} ;
int main()
{
typedef mpl::vector<int, float, char, double, long>
myNumericTypes ;
evalThis<myNumericTypes> myObj ;
myObj.operator()() ;
return 0 ;
}