Boost logo

Boost Users :

From: Joel (joel_at_[hidden])
Date: 2005-01-17 21:21:03


Sergey Skorniakov wrote:
> Hello, All!
>
> I had tryed to compile some code with Microsoft (R) C/C++ Optimizing
> Compiler Version 14.00.2207 for AMD64 (from Server 2003 DDK) and got an
> error:
>
> C:\boost_1_32_0\boost\spirit\core\non_terminal\impl\grammar.ipp(308) :
> error C2784: 'std::mem_fun_t<_R,_Ty> std::mem_fun(_R (__cdecl _Ty::* )
> (void))' : could not deduce template argument for 'T1 (__cdecl T2::*
> )(void)' from 'int (__cdecl
> boost::spirit::impl::grammar_helper_base<GrammarT>::* )(GrammarT *)'
> with
> [
> GrammarT=boost::spirit::grammar<boost::archive::basic_xml_grammar<wchar_t>>::self_t
>
> ]
>
> Just changing std::mem_fun(&helper_base_t::undefine) to
> std::mem_fun1(&helper_base_t::undefine) resolves this problem. Modified
> successfully compiles under VC7.1, too.

Hi Sergey,

Could you please post this to Spirit's mailing list?

Spirit-general mailing list
Spirit-general_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/spirit-general

Thanks!

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

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