Modify

Ticket #6258 (closed Bugs: fixed)

Opened 2 years ago

Last modified 2 years ago

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

Reported by: calfeld@… Owned by: atompkins
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

Change History

comment:1 Changed 2 years ago by atompkins

  • Status changed from new to closed
  • Resolution set to fixed

fixed as suggested, release commit 76006

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


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

 
Note: See TracTickets for help on using tickets.