[Boost-bugs] [Boost C++ Libraries] #11763: boost_1_59_0/boost/serialization/array.hpp:54: missing return ?

Subject: [Boost-bugs] [Boost C++ Libraries] #11763: boost_1_59_0/boost/serialization/array.hpp:54: missing return ?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-10-27 17:13:42


#11763: boost_1_59_0/boost/serialization/array.hpp:54: missing return ?
----------------------------------------+------------------------------
 Reporter: David Binderman <dcb314@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.59.0
 Severity: Problem | Keywords:
----------------------------------------+------------------------------
 [boost_1_59_0/boost/serialization/array.hpp:54]: (error) No 'return'
 statement in non-void function causes undefined behavior.

 Source code is

     array & operator=(const array & rhs){
         m_t = rhs.m_t;
         m_element_count = rhs.m_element_count;
     }

 I am surprised this even compiles.

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