[Boost-bugs] [Boost C++ Libraries] #6258: seed_rng.hpp has errors in clang++ 3.0 c++11 (Fix included)

Subject: [Boost-bugs] [Boost C++ Libraries] #6258: seed_rng.hpp has errors in clang++ 3.0 c++11 (Fix included)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-12-12 20:05:44


#6258: seed_rng.hpp has errors in clang++ 3.0 c++11 (Fix included)
---------------------------------+------------------------------------------
 Reporter: calfeld@… | Owner: atompkins
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: uuid
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 At line 142 (sha_random_digest_()), rn is n array of unsigned ints with an
 initializer list of ints. This is an error in clang 3.0 with c++11
 turned. It is easily fixed. Replace the line with:

             unsigned int rn[] = {
               static_cast<unsigned int>(std::rand()),
               static_cast<unsigned int>(std::rand()),
               static_cast<unsigned int>(std::rand())
             };

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