Boost logo

Boost :

From: David Abrahams (abrahams_at_[hidden])
Date: 2001-03-16 17:20:37


The first one is due to a bug in MSVC: it treats functions declared to take
const T value parameters differently from those declared to take plain T
value parameters. Try removing the 'atconst' qualifications as follows:

 foo(const int n) => foo(int n)
 bar(const int n) => bar(int n)

I've made the change in CVS, so it should appear in the next release.

I'm not absolutely sure what the 2nd problem is, but I'd lay dollars to
donuts it's the same thing. What happens when you do the same trick with
IndexingSet::get()?

HTH,
Dave

P.S. If you have modified the project workspace that ships with Boost.Python
or have created Makefiles which build all examples, I'd love to incorporate
your work into the boost release!

----- Original Message -----
From: <charlie_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Friday, March 16, 2001 4:24 PM
Subject: [boost] Problems compiling boost.python examples (getting_started4
and 5)

> I've been compiling and running examples 1 through 3 with no problem,
> but I'm getting (horribly confusing template) errors with 4 and 5
> (using MSVC6sp4), specifically:
>
> getting_started4:
> error C2664: 'struct boost::python::detail::return_value_select<class
> std::vector<double,class std::allocator<double> > > __cdecl
> boost::python::detail::return_value(class std::vector<double,class
> std::allocator<double> > (__cdecl *)(int))' : cannot convert
> parameter 1 from 'class std::vector<double,class
> std::allocator<double> > (__cdecl *)(const int)' to 'class
> std::vector<double,class std::allocator<double> > (__cdecl *)(int)'
>
> getting_started5:
> error C2665: 'return_value' : none of the 2 overloads can convert
> parameter 1 from type 'class `anonymous-namespace'::MillerIndex
> (__thiscall `anonymous-namespace'::IndexingSet::*)(const unsigned
> int) const'
>
> Any suggestions?
>
>
>
>
>
> List-Unsubscribe: <mailto:boost-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk