[C++-sig] Re: implicitly_convertible

Aashish Chaudhary aashish at iastate.edu
Thu Feb 5 22:56:14 CET 2004


The code is there in boost.python and part of it (from boost/python/function_template.hpp)

void assign_to(const reference_wrapper<FunctionObj>& f,
                   detail::function::function_obj_ref_tag)
    {
      if (!detail::function::has_empty_target(f.get_pointer())) {
        typedef
          typename detail::function::BOOST_FUNCTION_GET_FUNCTION_OBJ_INVOKER<
                                       FunctionObj,
                                       R BOOST_FUNCTION_COMMA
                                       BOOST_FUNCTION_TEMPLATE_ARGS
                                     >::type
          invoker_type;

        invoker = &invoker_type::invoke;
        this->manager = &detail::function::trivial_manager<FunctionObj>; //LINE 511 error
showing here !!
        this->functor =
          this->manager(
            detail::function::make_any_pointer(
              const_cast<FunctionObj*>(f.get_pointer())),
            detail::function::clone_functor_tag);
      }
    } 

The command line options are 

/Od /I "../../../../" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "_USRDLL" /D
"BOOST_PYTHON_DYNAMIC_LIB" /D "BOOST_PYTHON
_SOURCE" /D "_MBCS" /D "_WINDLL" /FD /EHsc /RTC1 /MDd /GS /GR
/Fp".\debug-obj/boost_python.pch" /Fo".\debug-
obj/" /Fd".\debug-obj/" /W3 /nologo /c /Zi

I have got the cvs version as the version on the web does not has the some of the
converters that I am using. 

~regads,
Aashish




> My guess is that this is a secondary error and the real problem is somewhere
> else. Could you try to strip down your code to a minimum and then post the
> remaining rest, along with the command line that you use for compiling?
> Ralf
> 
> --- aashish <aashish at vrac.iastate.edu> wrote:
> > Hi, 
> > 
> > Well as I posted some problems before regarding boost.python project file
> > for the Windows ...as when I didn't make it I started compiling myself using
> > 
> > MSVC 7.0 and it came out fime but just one error (well some more and they
> > all belongs to this line)
> > 
> > In the header file:
> > 

__________________________________________________________________________
Aashish Chaudhary

Research Assistant
Iowa State University                   E-Mail: aashish at iastate.edu 
Ames, Iowa                              Telephone: +1 515-441-1178











More information about the Cplusplus-sig mailing list