[Boost-bugs] [Boost C++ Libraries] #10272: property_tree commit 8af8b6b breaks VS2013 64-bit build

Subject: [Boost-bugs] [Boost C++ Libraries] #10272: property_tree commit 8af8b6b breaks VS2013 64-bit build
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-29 14:11:54


#10272: property_tree commit 8af8b6b breaks VS2013 64-bit build
----------------------------------------+---------------------------
 Reporter: mevatron@… | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost Development Trunk | Severity: Problem
 Keywords: xml_parser_writer_settings |
----------------------------------------+---------------------------
 I was attempting to build the PointCloudLibrary using the 1.56.0_beta1
 binary from SourceForge; however, I encountered the following compilation
 errors when doing so:

 {{{
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(38):
 error C2825: 'Str': must be a class or namespace when followed by '::'
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
           C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp(201) : see
 reference to class template instantiation
 'boost::property_tree::xml_parser::xml_writer_settings<char>' being
 compiled
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(38):
 error C2039: 'value_type' : is not a member of '`global namespace''
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(38):
 error C2146: syntax error : missing ';' before identifier 'Ch'
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(38):
 error C4430: missing type specifier - int assumed. Note: C++ does not
 support default-int (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(40):
 error C2061: syntax error : identifier 'Ch'
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(49):
 error C2146: syntax error : missing ';' before identifier 'indent_char'
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(49):
 error C4430: missing type specifier - int assumed. Note: C++ does not
 support default-int (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(50):
 error C2825: 'Str': must be a class or namespace when followed by '::'
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(50):
 error C2039: 'size_type' : is not a member of '`global namespace''
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(50):
 error C2146: syntax error : missing ';' before identifier 'indent_count'
 (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\boost-
 1_56_0_b1\boost/property_tree/detail/xml_parser_writer_settings.hpp(50):
 error C4430: missing type specifier - int assumed. Note: C++ does not
 support default-int (C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp)
 C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp(201): error C2661:
 'boost::property_tree::xml_parser::xml_writer_settings<char>::xml_writer_settings'
 : no overloaded function takes 2 arguments
 C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp(203): error C2664:
 'void
 boost::property_tree::xml_parser::write_xml<boost::property_tree::ptree>(const
 std::string &,const Ptree &,const std::locale &,const
 boost::property_tree::xml_parser::xml_writer_settings<Key> &)' : cannot
 convert argument 4 from
 'boost::property_tree::xml_parser::xml_writer_settings<char>' to 'const
 boost::property_tree::xml_parser::xml_writer_settings<Key> &'
           with
           [
               Ptree=boost::property_tree::ptree
   , Key=std::string
           ]
           and
           [
               Key=std::string
           ]
           Reason: cannot convert from
 'boost::property_tree::xml_parser::xml_writer_settings<char>' to 'const
 boost::property_tree::xml_parser::xml_writer_settings<Key>'
           with
           [
               Key=std::string
           ]
           No user-defined-conversion operator available that can perform
 this conversion, or the operator cannot be called
 C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp(221): error C2661:
 'boost::property_tree::xml_parser::xml_writer_settings<char>::xml_writer_settings'
 : no overloaded function takes 2 arguments
 C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp(227): error C2664:
 'void
 boost::property_tree::xml_parser::write_xml<boost::property_tree::ptree>(const
 std::string &,const Ptree &,const std::locale &,const
 boost::property_tree::xml_parser::xml_writer_settings<Key> &)' : cannot
 convert argument 4 from
 'boost::property_tree::xml_parser::xml_writer_settings<char>' to 'const
 boost::property_tree::xml_parser::xml_writer_settings<Key> &'
           with
           [
               Ptree=boost::property_tree::ptree
   , Key=std::string
           ]
           and
           [
               Key=std::string
           ]
           Reason: cannot convert from
 'boost::property_tree::xml_parser::xml_writer_settings<char>' to 'const
 boost::property_tree::xml_parser::xml_writer_settings<Key>'
           with
           [
               Key=std::string
           ]
           No user-defined-conversion operator available that can perform
 this conversion, or the operator cannot be called
 C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp(282): error C2661:
 'boost::property_tree::xml_parser::xml_writer_settings<char>::xml_writer_settings'
 : no overloaded function takes 2 arguments
 C:\Users\Will\Source\pcl.git\io\src\lzf_image_io.cpp(287): error C2664:
 'void
 boost::property_tree::xml_parser::write_xml<boost::property_tree::ptree>(const
 std::string &,const Ptree &,const std::locale &,const
 boost::property_tree::xml_parser::xml_writer_settings<Key> &)' : cannot
 convert argument 4 from
 'boost::property_tree::xml_parser::xml_writer_settings<char>' to 'const
 boost::property_tree::xml_parser::xml_writer_settings<Key> &'
           with
           [
               Ptree=boost::property_tree::ptree
   , Key=std::string
           ]
           and
           [
               Key=std::string
           ]
           Reason: cannot convert from
 'boost::property_tree::xml_parser::xml_writer_settings<char>' to 'const
 boost::property_tree::xml_parser::xml_writer_settings<Key>'
           with
           [
               Key=std::string
           ]
           No user-defined-conversion operator available that can perform
 this conversion, or the operator cannot be called
 }}}

 Reverting the `property_tree` module back to commit
 `85f8d8866ccfa98e4a667343529adb411bd67d08` corrected the build problem I
 was having.

 Thanks,
 Will

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10272>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC