Subject: [Boost-bugs] [Boost C++ Libraries] #12123: Using Boost.Signals2 with Boost.Variant leads to compilation error, MSVC 14 (suspected compiler bug)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-04-12 18:46:40
#12123: Using Boost.Signals2 with Boost.Variant leads to compilation error, MSVC 14
(suspected compiler bug)
------------------------------------------+----------------------
Reporter: Gabriel Marcano <gmarcano@â¦> | Owner: fmhess
Type: Bugs | Status: new
Milestone: To Be Determined | Component: signals2
Version: Boost 1.60.0 | Severity: Problem
Keywords: |
------------------------------------------+----------------------
Attempting to compile a program that has a signal with a function type
taking a variant as a parameter (e.g. boost::signals2::signal<void(const
boost::variant<int>)>), and then calling said signal after it has been
connected to something leads to a compilation failure for MSVC 14, Visual
Studio 2015 Update 2. The actual error is rather long, but has to do with
the compiler failing to disambiguate the type of the argument related to
variants. I will be attaching a reduced version of the program that causes
the compilation failure on MSVC 14 and also the error log I get.
This program is compiled correctly on GCC 5.3, which is why I think this
is a compiler bug. I've already filed a bug report/ticket with Microsoft
just in case. Could this be worked around in any way?
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12123> 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