提升BiMap解析模板错误

时间:2018-02-09 15:24:30

标签: c++11 templates boost bimap

添加/usr/include/boost/bimap/relation/structured_pair.hpp: In function ‘bool boost::bimaps::relation::operator<(const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout1>&, const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout2>&)’: /usr/include/boost/bimap/relation/structured_pair.hpp:375:19: error: parse error in template argument list return ( ( a.first < b.first ) || ^ /usr/include/boost/bimap/relation/structured_pair.hpp: In function ‘bool boost::bimaps::relation::operator<=(const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout1>&, const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout2>&)’: /usr/include/boost/bimap/relation/structured_pair.hpp:383:19: error: parse error in template argument list return ( ( a.first < b.first ) || ^ /usr/include/boost/bimap/relation/structured_pair.hpp: In function ‘bool boost::bimaps::relation::operator<(const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout1>&, const std::pair<F, S>&)’: /usr/include/boost/bimap/relation/structured_pair.hpp:424:19: error: parse error in template argument list return ( ( a.first < b.first ) || ^ /usr/include/boost/bimap/relation/structured_pair.hpp: In function ‘bool boost::bimaps::relation::operator<=(const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout1>&, const std::pair<F, S>&)’: /usr/include/boost/bimap/relation/structured_pair.hpp:432:19: error: parse error in template argument list return ( ( a.first < b.first ) || ^ /usr/include/boost/bimap/relation/structured_pair.hpp: In function ‘bool boost::bimaps::relation::operator<(const std::pair<F, S>&, const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout1>&)’: /usr/include/boost/bimap/relation/structured_pair.hpp:473:19: error: parse error in template argument list return ( ( a.first < b.first ) || ^ /usr/include/boost/bimap/relation/structured_pair.hpp: In function ‘bool boost::bimaps::relation::operator<=(const std::pair<F, S>&, const boost::bimaps::relation::structured_pair<FirstType, SecondType, Info, Layout1>&)’: /usr/include/boost/bimap/relation/structured_pair.hpp:481:19: error: parse error in template argument list return ( ( a.first < b.first ) || 时出现解析模板错误 我想从它的价值中找到一张地图的关键,因此想到使用Boost的Bimap但却低于错误。

   $("#my_id iframe").on("load", function() {
      console.log('LOADED!');
   });

   $("#my_id iframe").ready(function() {
      console.log("READY!");
      $("#my_id iframe").on("load", function() {
          console.log('LOADED!');
      });
    });  

1 个答案:

答案 0 :(得分:0)

使用GCC 4.8.5:

总而言之,看起来你做了别的错事。还有哪些包括?如果可能,请检查预处理的源。