Re: [Boost-bugs] [Boost C++ Libraries] #12115: Boost.Asio compile error on Visual Studio 2015 Update 2

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #12115: Boost.Asio compile error on Visual Studio 2015 Update 2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-14 11:28:30


#12115: Boost.Asio compile error on Visual Studio 2015 Update 2
--------------------------------------------+----------------------------
  Reporter: Sergey Svistunov <zenden2k@…> | Owner: chris_kohlhoff
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.60.0 | Severity: Problem
Resolution: | Keywords:
--------------------------------------------+----------------------------

Comment (by anonymous):

 the solution I found was to just change this boost code (mentioned in the
 original report)


 {{{
    static const bool value =
       sizeof(service_has_move::eval(
         static_cast<service_type*>(0),
         static_cast<implementation_type*>(0))) == 1;

 }}}

 to this


 {{{
   static const bool value =
       sizeof( eval(
         static_cast<service_type*>(0),
         static_cast<implementation_type*>(0))) == 1;
 }}}

 (i.e. remove the service_has_move:: )

 and it compiled fine. If you rename that actual method to something like
 eval2, you'll get a compile error, which confirms it's still resolving to
 the correct method.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12115#comment:5>
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:20 UTC