[Boost-bugs] [Boost C++ Libraries] #12110: boost::signals2 with reference to boost::any crashes on vc2015 update2

Subject: [Boost-bugs] [Boost C++ Libraries] #12110: boost::signals2 with reference to boost::any crashes on vc2015 update2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-01 13:00:21


#12110: boost::signals2 with reference to boost::any crashes on vc2015 update2
-------------------------+------------------------------
 Reporter: tschenser@… | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.60.0
 Severity: Problem | Keywords:
-------------------------+------------------------------
 The following code crashes on visual studio 2015 update2

 {{{
 #include <boost/any.hpp>
 #include <boost/signals2.hpp>
 #include <iostream>

 int main(int argc, char* argv[])
 {
   boost::signals2::signal<void(const boost::any &)> sig;

   sig.connect([](const boost::any &value) { std::cout <<
 boost::any_cast<double>(value) << std::endl; });

   sig(double(12.0));
 }

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12110>
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:19 UTC