【发布时间】:2010-06-10 13:29:48
【问题描述】:
有没有办法像这里一样使用 boost 元组的 ctors 作为子类方法(和 ctors)的补充?
// typedef boost::tuple<int, SomeId, SomeStatus> Conn;
// Conn(1); // works and initializes using default ctors of Some*
struct Conn : boost::tuple<int, AsynchId, AccDevRetStatus> {};
Conn(1); // "no matching function call" (but i want it so much)
T.H.X.
【问题讨论】:
标签: c++ boost constructor initialization tuples