【问题标题】:C++ boost::mpl::type forward declarationC++ boost::mpl::type 前向声明
【发布时间】:2014-06-02 09:58:49
【问题描述】:

我有以下类型:

typedef boost::mpl::fold<hostObjectTypes, void, base>::type caClientObject;

我需要这个 caClientObject 的前向 decleration。有谁知道如何实现它?

【问题讨论】:

    标签: c++ boost forward-declaration


    【解决方案1】:

    我愿意

    struct caClientObject; /* forward */
    

    以后

    struct caClientObject : boost::mpl::fold<hostObjectTypes, void, base> {
    };
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-02-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-12-29
      • 2021-12-25
      相关资源
      最近更新 更多