Re: [Boost-bugs] [Boost C++ Libraries] #4146: [patch] ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117: error: non-constant `(((int)f_c) | 3072)' cannot be used as template argument

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4146: [patch] ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117: error: non-constant `(((int)f_c) | 3072)' cannot be used as template argument
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-21 20:58:34


#4146: [patch] ./boost/property_tree/detail/xml_parser_read_rapidxml.hpp:117:
error: non-constant `(((int)f_c) | 3072)' cannot be used as template
argument
---------------------------------------------------+------------------------
  Reporter: Jan-Hein Bührman <buhrman@…> | Owner: cornedbee
      Type: Bugs | Status: closed
 Milestone: | Component: property_tree
   Version: Boost Development Trunk | Severity: Showstopper
Resolution: fixed | Keywords: property_tree xml_parser non-constant template argument
---------------------------------------------------+------------------------

Comment (by Leonid Gershanovich <gleonid@…>):

 As I already mentioned above there is a difference between run time and
 compile time constants. Other than that you are right: "const int" is a
 constant.

 However I was not looking to open a discussion about c++ standard.

 Is there a reason why you believe that enum should not be used in this
 particular case?

 In any case - please let me know if you decide to dismiss my suggestion,
 in which case I'll keep applying patch to local copy of your library every
 time boost releases new version.

 Thanks

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4146#comment:10>
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:06 UTC