[C++-sig] [Py++] free operators

2009-03-25 Thread Michał Nowotka
Hello, I want to expose to python following code: typedef std::map ProbHaplotype; typedef std::map ProbFenotype; typedef std::map ProbGenotype; (...) std::ostream& operator<<(std::ostream& os, const ProbHaplotype& hapl); std::ostream& operator<<(std::ostream& os, const ProbFenotype& fen); st

Re: [C++-sig] [Py++] free operators

2009-03-25 Thread Roman Yakovenko
2009/3/25 Michał Nowotka : > Hello, > I want to expose to python following code: > > typedef std::map ProbHaplotype; > > typedef std::map ProbFenotype; > > typedef std::map ProbGenotype; > > (...) > > std::ostream& operator<<(std::ostream& os, const ProbHaplotype& hapl); > > std::ostream& operator<

[C++-sig] map_indexing_suite interface

2009-03-25 Thread troy d. straszheim
I'm wondering why the current map_indexing_suite is the way it is. Is there any reason not to enhance it to support now standard methods like keys(), values(), popitem() and the like? -t ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://

[C++-sig] [Py++] call polices newbie questions

2009-03-25 Thread Michał Nowotka
Hello, First of all I found that set of return value polices mention in boost.python documentation (http://www.boost.org/doc/libs/1_38_0/libs/python/doc/tutorial/doc/html/python/functions.html#python.call_policies): * reference_existing_object * copy_const_reference * copy_non_const_r

Re: [C++-sig] [Py++] call polices newbie questions

2009-03-25 Thread Roman Yakovenko
2009/3/25 Michał Nowotka : > Hello, > > First of all I found that set of return value polices mention in > boost.python documentation > (http://www.boost.org/doc/libs/1_38_0/libs/python/doc/tutorial/doc/html/python/functions.html#python.call_policies): > >    * reference_existing_object >    * copy

[C++-sig] [Py++] user-defined exceptions

2009-03-25 Thread Michał Nowotka
And one more question - what about user-defined exceptions? Suppose I have following code from library which I cannot modify: namespace faif { class FaifException : public std::exception { public: FaifException(){} virtual ~FaifException() throw() {

Re: [C++-sig] [Py++] user-defined exceptions

2009-03-25 Thread Roman Yakovenko
2009/3/25 Michał Nowotka : > And one more question - what about user-defined exceptions? > Suppose I have following code from library which I cannot modify: > > namespace faif > > { > > >   class FaifException : public std::exception { > >        public: > >                FaifException(){} > >    

Re: [C++-sig] gcc flag -fvisibility=hidden not working with boost::python

2009-03-25 Thread Niall Douglas
On 23 Mar 2009 at 11:42, Renato Araujo wrote: > For more details about the problem, I found the correct header witch > give me this problem, and isolate that with this: > > #include > # include > # include > > #pragma GCC visibility push(default) > #include > #pragma GCC visibility pop > >

Re: [C++-sig] [Py++] free operators

2009-03-25 Thread Michał Nowotka
> If you use SVN version, than you can "include" the classes. Ok, so I've checked out svn repository and reinstalled pygccxmm and py++ from pygccxml_dev and pyplusplus_dev but I still get same warnings. Should I do something else to include these classes? -- Regards Michał Nowotka