Opened 11 years ago

Closed 11 years ago

#6258 closed Bugs (fixed)

seed_rng.hpp has errors in clang++ 3.0 c++11 (Fix included)

Reported by: calfeld@… Owned by: Andy Tompkins
Milestone: To Be Determined Component: uuid
Version: Boost 1.48.0 Severity: Problem
Keywords: Cc:

Description

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())

};

Change History (1)

comment:1 by Andy Tompkins, 11 years ago

Resolution: fixed
Status: newclosed

fixed as suggested, release commit 76006

Note: See TracTickets for help on using tickets.