8000 compile cpgf 1.5.6 sampleserialization Failed under visual c++ 2010 sp1! · Issue #71 · cpgf/cpgf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
compile cpgf 1.5.6 sampleserialization Failed under visual c++ 2010 sp1! #71
Open
@cxq2003

Description

@cxq2003

1>------ 已启动生成: 项目: sampleserialization, 配置: Release Win32 ------
1>生成启动时间为 2018/6/14 21:41:12。
1>InitializeBuildStatus:
1> 正在对“sampleserialization.dir\Release\sampleserialization.unsuccessfulbuild”执行 Touch 任务。
1>CustomBuild:
1> 所有输出均为最新。
1>ClCompile:
1> object.cpp
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(503): error C2664: “check”: 不能将参数 1 从“MyData”转换为“bool”
1> 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(617): 参见对正在编译的类 模板 实例化“cpgf::IsConvertible<From,To>”的引用
1> with
1> [
1> From=MyData,
1> To=int
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/genableif.h(19): 参见对正在编译的类 模板 实例化“cpgf::IsEnum”的引用
1> with
1> [
1> T=MyData
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gvartypedata_p.h(119): 参见对正在编译的类 模板 实例化“cpgf::GEnableIfResult<C,T>”的引用
1> with
1> [
1> C=cpgf::IsEnum,
1> T=void
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gvartypedata.h(185): 参见对正在编译的类 模板 实例化“cpgf::variant_internal::DeduceVariantType”的引用
1> with
1> [
1> T=MyData
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gmetafield_p.h(188): 参见对正在编译的函数 模板 实例化“void cpgf::deduceVariantType(cpgf::GVarTypeData &,bool)”的引用
1> with
1> [
1> FT=MyData
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gmetafield_p.h(152): 参见对正在编译的函数 模板 实例化“cpgf::GVariant cpgf::meta_internal::GMetaFieldDataMember<OT,FT,Policy>::doGet(const void *) const”的引用
1> with
1> [
1> OT=MyObject,
1> FT=MyData,
1> Policy=cpgf::MakePolicy<>
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gmetafield_p.h(151): 编译类 模板 成员函数“cpgf::GVariant cpgf::meta_internal::GMetaFieldDataMember<OT,FT,Policy>::virtualGet(const void *,const void )”时
1> with
1> [
1> OT=MyObject,
1> FT=MyData,
1> Policy=cpgf::MakePolicy<>
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gmetafield.h(20): 参见对正在编译的类 模板 实例化“cpgf::meta_internal::GMetaFieldDataMember<OT,FT,Policy>”的引用
1> with
1> [
1> OT=MyObject,
1> FT=MyData,
1> Policy=cpgf::MakePolicy<>
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gmetadefine.h(269): 参见对正在编译的函数 模板 实例化“cpgf::GMetaField::GMetaField<MyObject,MyData,cpgf::MakePolicy<>>(const char ,FT MyObject:: ,const Policy &)”的引用
1> with
1> [
1> FT=MyData,
1> Policy=cpgf::MakePolicy<>
1> ]
1> ....\samples\serialization\object.cpp(108): 参见对正在编译的函数 模板 实例化“cpgf::GDefineMetaField cpgf::GDefineMetaCommon<ClassT,DerivedType>::_field<MyDataMyObject::
>(const char ,FT)”的引用
1> with
1> [
1> BaseType=cpgf::GDefineMetaClass,
1> ClassT=MyObject,
1> DerivedType=cpgf::GDefineMetaClass,
1> FT=MyData MyObject::

1> ]
1> ....\samples\serialization\object.cpp(232): 参见对正在编译的函数 模板 实例化“void register_MyObjectcpgf::GDefineMetaGlobal(D)”的引用
1> with
1> [
1> D=cpgf::GDefineMetaGlobal
1> ]
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(503): error C2866: “cpgf::IsConvertible<From,To>::Result”: 托管类型的常量静态数据成员必须在声明时初始化
1> with
1> [
1> From=MyData,
1> To=int
1> ]
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(617): error C2057: 应输入常量表达式
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/genableif.h(19): error C2975: “unnamed-parameter”:“cpgf::GEnableIf”的模板参数无效,应为编译时常量表达式
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/genableif.h(9) : 参见“unnamed-parameter”的声明
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(503): error C2664: “check”: 不能将参数 1 从“const MyData”转换为“bool”
1> 没有可用于执行该转换的用户定义的转换运算符,或者无法调用该运算符
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/genableif.h(19): 参见对正在编译的类 模板 实例化“cpgf::IsConvertible<From,To,Enabled>”的引用
1> with
1> [
1> From=const MyData &,
1> To=const cpgf::IObject &,
1> Enabled=void
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gvartypedata.h(185): 参见对正在编译的类 模板 实例化“cpgf::GEnableIfResult<C,T>”的引用
1> with
1> [
1> C=cpgf::IsConvertible<const MyData &,const cpgf::IObject &,void>,
1> T=void
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gmetafield_p.h(188): 参见对正在编译的函数 模板 实例化“void cpgf::deduceVariantType(cpgf::GVarTypeData &,bool)”的引用
1> with
1> [
1> FT=MyData *
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gmetafield_p.h(152): 参见对正在编译的函数 模板 实例化“cpgf::GVariant cpgf::meta_internal::GMetaFieldDataMember<OT,FT,Policy>::doGet(const void *) const”的引用
1> with
1> [
1> OT=MyObject,
1> FT=MyData *,
1> Policy=cpgf::MakePolicy<>
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gmetafield_p.h(151): 编译类 模板 成员函数“cpgf::GVariant cpgf::meta_internal::GMetaFieldDataMember<OT,FT,Policy>::virtualGet(const void *,const void *)”时
1> with
1> [
1> OT=MyObject,
1> FT=MyData ,
1> Policy=cpgf::MakePolicy<>
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gmetafield.h(20): 参见对正在编译的类 模板 实例化“cpgf::meta_internal::GMetaFieldDataMember<OT,FT,Policy>”的引用
1> with
1> [
1> OT=MyObject,
1> FT=MyData ,
1> Policy=cpgf::MakePolicy<>
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gmetadefine.h(269): 参见对正在编译的函数 模板 实例化“cpgf::GMetaField::GMetaField<MyObject,MyData
,cpgf::MakePolicy<>>(const char ,FT MyObject:: ,const Policy &)”的引用
1> with
1> [
1> FT=MyData ,
1> Policy=cpgf::MakePolicy<>
1> ]
1> ....\samples\serialization\object.cpp(109): 参见对正在编译的函数 模板 实例化“cpgf::GDefineMetaField cpgf::GDefineMetaCommon<ClassT,DerivedType>::_field<MyData
MyObject::
>(const char *,FT)”的引用
1> with
1> [
1> BaseType=cpgf::GDefineMetaClass,
1> ClassT=MyObject,
1> DerivedType=cpgf::GDefineMetaClass,
1> FT=MyData MyObject::
1> ]
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(503): error C2866: “cpgf::IsConvertible<From,To,Enabled>::Result”: 托管类型的常量静态数据成员必须在声明时初始化
1> with
1> [
1> From=const MyData &,
1> To=const cpgf::IObject &,
1> Enabled=void
1> ]
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/genableif.h(19): error C2975: “unnamed-parameter”:“cpgf::GEnableIf”的模板参数无效,应为编译时常量表达式
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/genableif.h(9) : 参见“unnamed-parameter”的声明
1>D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(503): error C2070: “void”: 非法的 sizeof 操作数
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gtypetraits.h(617): 参见对正在编译的类 模板 实例化“cpgf::IsConvertible<From,To>”的引用
1> with
1> [
1> From=MyData *,
1> To=int
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/genableif.h(19): 参见对正在编译的类 模板 实例化“cpgf::IsEnum”的引用
1> with
1> [
1> T=MyData *
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/private/gvartypedata_p.h(119): 参见对正在编译的类 模板 实例化“cpgf::GEnableIfResult<C,T>”的引用
1> with
1> [
1> C=cpgf::IsEnum<MyData *>,
1> T=void
1> ]
1> D:\reflection\cpgf-1.5.6\build..\include\cpgf/gvartypedata.h(185): 参见对正在编译的类 模板 实例化“cpgf::variant_internal::DeduceVariantType”的引用
1> with
1> [
1> T=MyData *
1> ]
1>
1>生成失败。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0