|
Boost Users : |
Subject: [Boost-users] Boost.Fusion 1.41 issue ?
From: Surya Kiran Gullapalli (suryakiran.gullapalli_at_[hidden])
Date: 2009-11-19 02:11:42
Hello,
he following test program fails to compile with Boost-1.41 on msvc8.0 SP1.
It was working fine with Boost-1.40.
Am I missing something here ?
Thanks,
Surya
#include <iostream>
#include <boost/preprocessor.hpp>
#include <boost/fusion/container.hpp>
using namespace std ;
using namespace boost ;
#define MAX_ARGS 5
template <int id, BOOST_PP_ENUM_PARAMS(MAX_ARGS, typename T)>
void func (const boost::fusion::vector<BOOST_PP_ENUM_PARAMS(MAX_ARGS, T)>
p_args)
{
cout << "Multiple Arguments: id " << id << endl ;
}
template<int id>
void func (void)
{
cout << "No arguments: id " << id << endl ;
func <id>(boost::fusion::make_vector()) ;
}
int main (void)
{
func<10> (boost::fusion::make_vector(1, 2)) ;
func<6> () ;
return 0 ;
}
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net