Modify

Opened 6 years ago

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

};

Attachments (0)

Change History (1)

comment:1 Changed 6 years ago by Andy Tompkins

Resolution: fixed
Status: newclosed

fixed as suggested, release commit 76006

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Andy Tompkins.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.