Re: [Boost-bugs] [Boost C++ Libraries] #568: VS2005 Compilation Error

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #568: VS2005 Compilation Error
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-04-01 03:05:04


#568: VS2005 Compilation Error
-----------------------+----------------------------------------------------
  Reporter: salqadri | Owner: david_abrahams
      Type: Bugs | Status: reopened
 Milestone: | Component: Python
   Version: None | Severity: Showstopper
Resolution: | Keywords:
-----------------------+----------------------------------------------------
Changes (by anonymous):

  * status: closed => reopened
  * resolution: Works For Me =>
  * severity: => Showstopper

Comment:

 This is still a problem with VS2008. I believe the faulty line is:

 python::class_<CvBonusClassInfo, python::bases<CvInfoBase>
>("CvBonusClassInfo")
         .def_readwrite("getUniqueRange",
 &CvBonusClassInfo::getUniqueRange)
         ;

 The compiler returns:

 Boost-1.32.0\include\boost/python/data_members.hpp(277) : error C2665:
 'boost::python::detail::make_getter' : none of the 3 overloads could
 convert all the argument types
         Boost-1.32.0\include\boost/python/data_members.hpp(180): could be
 'boost::python::api::object boost::python::detail::make_getter(D (&ϝZ&
         Boost-1.32.0\include\boost/python/data_members.hpp(196): or
 'boost::python::api::object boost::python::detail::make_getter(D (&ϝZ&
         Boost-1.32.0\include\boost/python/data_members.hpp(204): or
 'boost::python::api::object boost::python::detail::make_getter(D &,P
 &,boost::mpl::false_,...)'
         with
         [
             D=int (__thiscall CvBonusClassInfo::* )(void) const,
             P=boost::python::detail::not_specified
         ]
         while trying to match the argument list '(int (__thiscall
 CvBonusClassInfo::* const )(void) const,
 boost::python::detail::not_specified, boost::is_member_pointer, long)'
         with
         [
             T=int (__thiscall CvBonusClassInfo::* )(void) const
         ]
         Boost-1.32.0\include\boost/python/class.hpp(447) : see reference
 to function template instantiation 'boost::python::api::object
 boost::python::make_getter(const D &)' being compiled
         with
         [
             D=int (__thiscall CvBonusClassInfo::* )(void) const
         ]
         Boost-1.32.0\include\boost/python/class.hpp(288) : see reference
 to function template instantiation 'boost::python::class_
 &boost::python::class_::def_readwrite_impl(const char *,D &)' being
 compiled
         with
         [
             W=CvBonusClassInfo,
             X1=boost::python::bases,
             D=int (__thiscall CvBonusClassInfo::* )(void) const
         ]
         .\CyInfoInterface2.cpp(303) : see reference to function template
 instantiation 'boost::python::class_
 &boost::python::class_::def_readwrite(const char *,const D &)' being
 compiled
         with
         [
             W=CvBonusClassInfo,
             X1=boost::python::bases,
             D=int (__thiscall CvBonusClassInfo::* )(void) const
         ]

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/568#comment:4>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC