[C++-sig] Boost: overloads documentation
dave at boost-consulting.com
Tue Apr 15 13:11:29 CEST 2003
Jacek Generowicz <jacek.generowicz at cern.ch> writes:
> Tutorial (Tut):
> Reference Manual (RM):
> The example in the RM introduces an overload dispatcher with the name
> "f_overloads" in the line
> BOOST_PYTHON_FUNCTION_OVERLOADS(f_overloads, f, 0, 3)
> This appears not to be used anywhere. Is this right ?
Fixed in CVS, thanks!
> The Tut suggests that overload dispatchers should be passed to def
> thus (in this case the overload dispatcher is called "foo_overloads"):
> .def("foo", foo, foo_overloads());
> Should the dot preceding "def" in the line above really be there? foo
> is a non-member function; but the line is quoted without context, so I
> can't see (or imagine) what the scope might be.
I'll leave this one to Joel.
> Is my confusion caused my by inability to read docs, or is there
> something Not Quite As It Should Be ?
Definitely the lattter ;-)
More information about the Cplusplus-sig