[Lemon-user] question about write data to lgf file
ZHANG Long
zhangloong at gmail.com
Wed Jun 1 10:18:02 CEST 2011
I have included <sstream>.
I posted the error message here. Unfortunately my VC++ 2010 is Chinese
version, hope you can find what happens from the the codes. Thank you.
1>------ 已启动生成: 项目: Lemon_test, 配置: Debug Win32 ------
1> test.cpp
1>c:\program files (x86)\lemon\include\lemon\lgf_writer.h(124): warning
C4180: 应用到函数类型的限定符没有意义;已将其忽略
1> c:\program files (x86)\lemon\include\lemon\lgf_writer.h(563): 参见对
正在编译的类 模板 实例化
“lemon::_writer_bits::MapStorage<_Item,_Map,_Converter>”的引用
1> with
1> [
1> _Item=lemon::ListDigraphBase::Node,
1> _Map=lemon::DigraphExtender<lemon::ListDigraphBase>::NodeMap<vessel>,
1>
_Converter=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
(vessel)
1> ]
1> d:\docs\my docs\visual studio
2010\projects\lemon_test\lemon_test\test.cpp(55): 参见对正在编译的函数
模板 实例化“lemon::DigraphWriter<DGR>
&lemon::DigraphWriter<DGR>::nodeMap<lemon::DigraphExtender<Base>::NodeMap<_Value>,std::string(vessel)>(const
std::string &,const Map &,Converter (__cdecl &))”的引用
1> with
1> [
1> DGR=lemon::ListDigraph,
1> Base=lemon::ListDigraphBase,
1> _Value=vessel,
1> Map=lemon::DigraphExtender<lemon::ListDigraphBase>::NodeMap<vessel>,
1> Converter=std::string (vessel)
1> ]
1>c:\program files (x86)\lemon\include\lemon\lgf_writer.h(124): warning
C4180: 应用到函数类型的限定符没有意义;已将其忽略
1>c:\program files (x86)\lemon\include\lemon\lgf_writer.h(125): error
C2436: “_converter”: 构造函数初始值设定项列表中的成员函数或嵌套类
1> c:\program files (x86)\lemon\include\lemon\lgf_writer.h(124): 编译类
模板 成员函数
“lemon::_writer_bits::MapStorage<_Item,_Map,_Converter>::MapStorage(const lemon::DigraphExtender<Base>::NodeMap<_Value>
&,std::basic_string<_Elem,_Traits,_Ax> (__cdecl &)(vessel))”时
1> with
1> [
1> _Item=lemon::ListDigraphBase::Node,
1> _Map=lemon::DigraphExtender<lemon::ListDigraphBase>::NodeMap<vessel>,
1>
_Converter=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
(vessel),
1> Base=lemon::ListDigraphBase,
1> _Value=vessel,
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1> c:\program files (x86)\lemon\include\lemon\lgf_writer.h(563): 参见对
正在编译的类 模板 实例化
“lemon::_writer_bits::MapStorage<_Item,_Map,_Converter>”的引用
1> with
1> [
1> _Item=lemon::ListDigraphBase::Node,
1> _Map=lemon::DigraphExtender<lemon::ListDigraphBase>::NodeMap<vessel>,
1>
_Converter=std::basic_string<char,std::char_traits<char>,std::allocator<char>>
(vessel)
1> ]
1> d:\docs\my docs\visual studio
2010\projects\lemon_test\lemon_test\test.cpp(55): 参见对正在编译的函数
模板 实例化“lemon::DigraphWriter<DGR>
&lemon::DigraphWriter<DGR>::nodeMap<lemon::DigraphExtender<Base>::NodeMap<_Value>,std::string(vessel)>(const
std::string &,const Map &,Converter (__cdecl &))”的引用
1> with
1> [
1> DGR=lemon::ListDigraph,
1> Base=lemon::ListDigraphBase,
1> _Value=vessel,
1> Map=lemon::DigraphExtender<lemon::ListDigraphBase>::NodeMap<vessel>,
1> Converter=std::string (vessel)
1> ]
========== 生成: 成功 0 个,失败 1 个,最新 0 个,跳过 0 个 ==========
More information about the Lemon-user
mailing list