[Boost-bugs] [Boost C++ Libraries] #13332: Boost 1.65.1 seems to be missing boost graph fixes from 1.64

Subject: [Boost-bugs] [Boost C++ Libraries] #13332: Boost 1.65.1 seems to be missing boost graph fixes from 1.64
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-12-08 11:02:48


#13332: Boost 1.65.1 seems to be missing boost graph fixes from 1.64
------------------------------+---------------------
 Reporter: jckooijman@… | Owner: (none)
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
  Version: Boost 1.65.0 | Severity: Problem
 Keywords: |
------------------------------+---------------------
 I am getting compile errors using VS2017 in boost 1.65.1

 boost\graph\named_function_params.hpp

 {{{
 template <class Tag, typename Args>
 inline
 const typename lookup_named_param_def<Tag, Args,
 param_not_found>::type&
 get_param(const Args& p, Tag) {
     return lookup_named_param_def<Tag, Args, param_not_found>::get(p,
 param_not_found());
 }
 }}}

 This was fixed in 1.64 apparently.

 #if _MSC_VER >=1900
 #pragma warning( push )
 #pragma warning( disable : 4172 )
 #endif
 template <class Tag, typename Args>
 inline
 const typename lookup_named_param_def<Tag, Args, param_not_found>::type&
     get_param(const Args& p, Tag) {
 return lookup_named_param_def<Tag, Args, param_not_found>::get(p,
 param_not_found());
 }
 #if _MSC_VER >= 1900
 #pragma warning( pop )
 #endif

 I found another example of this:

 {{{
 explicit two_bit_color_map(std::size_t n, const IndexMap& index =
 IndexMap())
 : n(n), index(index), data(new unsigned char[(n + elements_per_char - 1) /
 elements_per_char])
 {
     // Fill to white
     std::fill(data.get(), data.get() + (n + elements_per_char - 1) /
 elements_per_char, 0);
 }
 }}}

 in this case the int 0 being passed to std::fill needs to be casted to a
 char to compile. Also fixed in 1.64. Has something gone wrong here in the
 1.65.1 release?

-- 
Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13332>
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-12-08 11:08:59 UTC