Boost logo

Boost Users :

Subject: Re: [Boost-users] Puzzled: compiler can't find a match for function call
From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2008-09-11 08:17:16


Zeljko Vrba wrote:
> In the code below, the compiler complains with
>
> q.cc:39: error: no matching function for call to `inc2(boost::fusion::map<boost:
> :fusion::pair<detail::KEY, int>, boost::fusion::void_, boost::fusion::void_, boo
> st::fusion::void_, boost::fusion::void_, boost::fusion::void_, boost::fusion::vo
> id_, boost::fusion::void_, boost::fusion::void_, boost::fusion::void_>&)'
>
> id_t<K> is the SAME type as the expanded BF::map type in inc1; it even works
> as the return type of inc1, yet I can't use it as an argument to inc2. What
> am I missing? This happens both on gcc 3.4 and SunCC 12.
...

> namespace detail
> {
> namespace BF = boost::fusion;
> struct KEY;

Just a cursory glance, is KEY ever fully defined... the above is just a
forwarded name.

Jeff Flinn


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