F
Frank Vanris
Hi,
I am using boost which uses templates heavily. When I make a typo the
compiler complains, but it complains in the boost headerfile (I attached an
example at the end where I forgot to pass in a parameter). But what I
actually need to know is where this template was instantiated so that I can
fix my typo. Is there an option so that the compiler tells me the location
of instantiation?
Thanks,
Frank.
Example of compile error:
C:\Frank\Develop\boost_1_32_0\boost\lambda\detail\actions.hpp(96): error
C2780: 'void boost::lambda::function_adaptor<Func>::apply(Result (__thiscall
FVUtil::FVHtmlRules::* )(Arg1,Arg2) const,const Object &,A1 &,A2 &)' :
expects 4 arguments - 3 provided
with
[
Func=boost::lambda::return_type_N<boost::lambda::function_action<3>,boost::lambda::lambda_functor_base<boost::lambda::action<3,boost::lambda::function_action<3>>,boost::tuples::tuple<const
boost::lambda::detail::bind_traits<void (__thiscall FVUtil::FVHtmlRules::*
const )(FVUtil::FVHtmlTags,const char *) const>::type,const
boost::lambda::detail::bind_traits<const FVUtil::FVHtmlRules *const
,
Result=void,
Arg1=FVUtil::FVHtmlTags,
Arg2=const char *,
Object=FVUtil::FVHtmlRules
]
I am using boost which uses templates heavily. When I make a typo the
compiler complains, but it complains in the boost headerfile (I attached an
example at the end where I forgot to pass in a parameter). But what I
actually need to know is where this template was instantiated so that I can
fix my typo. Is there an option so that the compiler tells me the location
of instantiation?
Thanks,
Frank.
Example of compile error:
C:\Frank\Develop\boost_1_32_0\boost\lambda\detail\actions.hpp(96): error
C2780: 'void boost::lambda::function_adaptor<Func>::apply(Result (__thiscall
FVUtil::FVHtmlRules::* )(Arg1,Arg2) const,const Object &,A1 &,A2 &)' :
expects 4 arguments - 3 provided
with
[
Func=boost::lambda::return_type_N<boost::lambda::function_action<3>,boost::lambda::lambda_functor_base<boost::lambda::action<3,boost::lambda::function_action<3>>,boost::tuples::tuple<const
boost::lambda::detail::bind_traits<void (__thiscall FVUtil::FVHtmlRules::*
const )(FVUtil::FVHtmlTags,const char *) const>::type,const
boost::lambda::detail::bind_traits<const FVUtil::FVHtmlRules *const
FVUtil::FVHtmlTags>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type,boost::lambda::detail::bind_traits<boost::tuples::null_type>::type>>::sig<boost::tuples::null_type>::rets_t>:lain_Func::type,const boost::lambda::detail::bind_traits<const
,
Result=void,
Arg1=FVUtil::FVHtmlTags,
Arg2=const char *,
Object=FVUtil::FVHtmlRules
]