タイプ inner_t のクラスのラッパー クラスを作成しています。次の方法で、内部クラスの適切なコンストラクター (左辺値参照または右辺値参照) を呼び出すことができますか?
template<typename S, typename T>
struct u_ref {
};
template<typename S>
struct u_ref<S, const S&> {
typedef const S& type;
};
template<typename S>
struct u_ref<S, S&&> {
typedef S&& type;
};
class wrapper_t {
private:
inner_t data;
public:
template<typename T>
wrapper_t(typename u_ref<inner_t,T>::type c_data):
data(std::forward(c_data)) {
}
}