[Boost-bugs] [Boost C++ Libraries] #11770: thread/detail/invoker.hpp: missing return statement at end of non-void function operator=()

Subject: [Boost-bugs] [Boost C++ Libraries] #11770: thread/detail/invoker.hpp: missing return statement at end of non-void function operator=()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-28 16:26:21


#11770: thread/detail/invoker.hpp: missing return statement at end of non-void
function operator=()
--------------------------------+----------------------
 Reporter: Jan Gampe <mail@…> | Owner: anthonyw
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: thread
  Version: Boost 1.59.0 | Severity: Problem
 Keywords: |
--------------------------------+----------------------
 I'm using the latest Intel compiler with the flags
 * -std=c++11
 * -Wall
 * -early-template-check

 Compiling any code including <boost/thread.hpp> results in the following
 warning:


 {{{

 In file included from /boost/thread/future.hpp(20),
                  from /boost/thread.hpp(24),
                  from thread.cc(1):
 /boost/thread/detail/invoker.hpp(76): warning #1011: missing return
 statement at end of non-void function "boost::detail::invoker<Fp,
 Args...>::operator=(boost::detail::invoker<Fp, Args...> &&)"
         }
         ^


 }}}

 I am not familiar with the particular purpose of this class, but might a
 simple

 {{{
 return *this;
 }}}

 help?

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