Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Fusion 1.41 issue ?
From: Joel de Guzman (joel_at_[hidden])
Date: 2009-11-19 11:59:12


Surya Kiran Gullapalli wrote:
>
>
> On Thu, Nov 19, 2009 at 12:41, Surya Kiran Gullapalli
> <suryakiran.gullapalli_at_[hidden]
> <mailto:suryakiran.gullapalli_at_[hidden]>> wrote:
>
> Hello,
> he following test program fails to compile with Boost-1.41 on
> msvc8.0 SP1. It was working fine with Boost-1.40.
>
> With Gcc-4.4.0 also it failed on linux.

fusion::make_vector now returns the numbered vectors for efficiency
at compile time. Hence, your overloads will not catch them.

    line 25: error: no matching function for call to
    'func(boost::fusion::vector2<int, int>)'
                         ^^^^^^^

Some metaprogramming should do the trick.

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net
http://www.facebook.com/djowel
Meet me at BoostCon
http://www.boostcon.com/home
http://www.facebook.com/boostcon

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