|
Boost : |
From: Anton Gluck (gluc_at_[hidden])
Date: 2000-11-01 00:07:05
Dave,
Is there a chance that vc6_prj doesn't work with the changes made for the
new release? I got your release 10-31 and customarily wanted to compile
its demo.dll (just checking that everything's ok :-), but got these
errors:
Compiling...
extclass_demo.cpp
d:\py_cpp\init_function.h(34) : warning C4181: qualifier applied to
reference type ignored
d:\py_cpp\init_function.h(58) : see reference to class template
instantiation 'py::detail::const_ref_selector<0>::const_ref<int const &>'
being compiled
d:\py_cpp\init_function.h(87) : see reference to class template
instantiation 'py::detail::parameter_traits<int const &>' being compiled
d:\py_cpp\init_function.h(188) : see reference to class template
instantiation 'py::detail::reference_parameter<int const &>' being
compiled
d:\py_cpp\init_function.h(183) : while compiling class-template
member function 'class py::InstanceHolderBase *__thiscall py::Init1<class
py::InstanceValueHolder<class extclass_demo::Foo,class
extclass_demo::FooCallback>,int const &>::create
_holder(class py::ExtensionInstance *,struct _object *,struct _object
*) const'
d:\py_cpp\init_function.h(34) : error C2529: '<Unknown>' : reference to
reference is illegal
d:\py_cpp\init_function.h(58) : see reference to class template
instantiation 'py::detail::const_ref_selector<0>::const_ref<int const &>'
being compiled
d:\py_cpp\init_function.h(87) : see reference to class template
instantiation 'py::detail::parameter_traits<int const &>' being compiled
d:\py_cpp\init_function.h(188) : see reference to class template
instantiation 'py::detail::reference_parameter<int const &>' being
compiled
d:\py_cpp\init_function.h(183) : while compiling class-template
member function 'class py::InstanceHolderBase *__thiscall py::Init1<class
py::InstanceValueHolder<class extclass_demo::Foo,class
extclass_demo::FooCallback>,int const &>::create
_holder(class py::ExtensionInstance *,struct _object *,struct _object
*) const'
d:\py_cpp\init_function.h(188) : error C2440: 'type cast' : cannot convert
from 'int' to 'class py::detail::reference_parameter<int const &>'
No constructor could take the source type, or constructor overload
resolution was ambiguous
d:\py_cpp\init_function.h(183) : while compiling class-template
member function 'class py::InstanceHolderBase *__thiscall py::Init1<class
py::InstanceValueHolder<class extclass_demo::Foo,class
extclass_demo::FooCallback>,int const &>::create
_holder(class py::ExtensionInstance *,struct _object *,struct _object
*) const'
d:\py_cpp\init_function.h(189) : error C2660: 'InstanceValueHolder<class
extclass_demo::Foo,class
extclass_demo::FooCallback>::InstanceValueHolder<class
extclass_demo::Foo,class extclass_demo::FooCallback>' : function does not
take 2 parameters
d:\py_cpp\init_function.h(183) : while compiling class-template
member function 'class py::InstanceHolderBase *__thiscall py::Init1<class
py::InstanceValueHolder<class extclass_demo::Foo,class
extclass_demo::FooCallback>,int const &>::create
_holder(class py::ExtensionInstance *,struct _object *,struct _object
*) const'
Since I see a lot of the (with me) infamous "const"s, I'm wondering
whether the vc6_prj code is perhaps not up to date.
Two other, minor points: vc6_prj.dsp is read-only, but I would guess that
most people need to do a bit of customization. And in the release version,
"warning D4025 : overriding '/Ot' with '/Os'" still shows up.
Some more info: I've just tried the new version with my own wrapping
project, and gotten the same kinds of errors, caused by code that worked
before (the TextRecordIterator parts are commented out; that very same
code works with your older version). Perhaps I'm missing some changes that
need to be made to the code for the new version?
Sorry to keep bugging you with this.
Toni
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk