[C++-sig] make_tuple()?
David Abrahams
david.abrahams at rcn.com
Fri Jul 19 22:26:08 CEST 2002
From: "Ralf W. Grosse-Kunstleve" <rwgk at yahoo.com>
> Given two handle<>, how do I turn them into a tuple?
> handle<> a;
> handle<> b;
> tuple(a, b); // does not work
> make_tuple(a, b); // does not work
> Looking at test/tuple.cpp wasn't particularly informative.
We need a family of boost::python::make_tuple() functions. Are you ready to
learn about the preprocessor library? The pattern used by
object_core/object_call.hpp provides useful boilerplate.
-Dave
More information about the Cplusplus-sig
mailing list