[C++-sig] Unable to compile modules using vector_indexing_suite

Andrew Buza apt.buza at gmail.com
Wed Mar 26 23:03:01 CET 2008

On Mon, Mar 17, 2008 at 2:58 PM, Andrew Buza <apt.buza at gmail.com> wrote:
> Hi Everyone. I hope this is the right place for boost_python usage questions.
>  I'm having trouble getting anything using vector_indexing_suite to
>  compile. I don't think it is a problem with configuration since all
>  the other parts of boost_python I've used are working fine, and the
>  sample given below (almost identical to one of the example usages in
>  the documentation) fails to compile as well, so it isn't an error in
>  usage on my part (I hope!).
>  The sample I'm using is:
>  #include <boost/python.hpp>
>  #include <boost/python/suite/indexing/vector_indexing_suite.hpp>
>  #include <vector>
>  using namespace boost::python;
>  {
>     class_<std::vector<int> >("IntVec")
>         .def(vector_indexing_suite<std::vector<int> >())
>         ;
>  }
>  which is compiled with:
>  C:\>cl
>  Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.6030 for 80x86
>  Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

In case anyone else has this problem and stumbles across this message,
this is the same issue described in "compile error in iterator" posted
in November 2006 to this group

More information about the Cplusplus-sig mailing list