Boost logo

Boost Users :

From: Sergey Skorniakov (s.skorniakov_at_[hidden])
Date: 2005-01-14 04:23:40


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.

With best regards, Sergey.


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