Victor Bazarov
11/18/2008 6:44:00 PM
Kaushal wrote:
> #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
WTH is 'mpl::find'? How is it defined?
> }
> } ;
>
> int main()
> {
> typedef mpl::vector<int, float, char, double, long>
> myNumericTypes ;
>
> evalThis<myNumericTypes> myObj ;
> myObj.operator()() ;
>
> return 0 ;
> }
V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask