Subject: [Boost-bugs] [Boost C++ Libraries] #12543: boost::async compile error for -std=c++03 and c++98
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-23 14:40:20
#12543: boost::async compile error for -std=c++03 and c++98
-------------------------------+----------------------
Reporter: evgeny.panasyuk@⦠| Owner: anthonyw
Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
Version: Boost 1.62.0 | Severity: Problem
Keywords: |
-------------------------------+----------------------
Following code results in compile error on GCC and Clang with -std=c++03
or -std=c++98 flags.
{{{
#!C++
#include <boost/thread.hpp>
struct Calc
{
typedef int result_type;
result_type operator()() const
{
return result_type();
}
};
int main()
{
Calc x;
boost::async(x);
}
}}}
LIVE DEMO: coliru.stacked-crooked.com/a/532c22d37e951a28
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/12543> 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