Opened 14 years ago

Closed 14 years ago

#2026 closed Bugs (fixed)

random does not compile on gcc with -ansi -pedantic

Reported by: Steven Watanabe Owned by: Steven Watanabe
Milestone: Boost 1.36.0 Component: random
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:

Description

boost/random/detail/signed_unsigned_tools.hpp has specializations of make_unsigned for long long. gcc rejects this when compiling with -ansi -pedantic. The attached patch replaces random::detail::make_unsigned with the TypeTraits version.

Attachments (1)

random.patch (2.9 KB ) - added by Steven Watanabe 14 years ago.

Download all attachments as: .zip

Change History (4)

by Steven Watanabe, 14 years ago

Attachment: random.patch added

comment:1 by Steven Watanabe, 14 years ago

Owner: changed from No-Maintainer to Steven Watanabe

comment:2 by Steven Watanabe, 14 years ago

Status: newassigned

comment:3 by Steven Watanabe, 14 years ago

Resolution: fixed
Status: assignedclosed

(In [46580]) Replace random's make_unsigned with the type_traits version. Fixes #2026

Note: See TracTickets for help on using tickets.