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)
Change History (4)
by , 14 years ago
| Attachment: | random.patch added |
|---|
comment:1 by , 14 years ago
| Owner: | changed from to |
|---|
comment:2 by , 14 years ago
| Status: | new → assigned |
|---|
comment:3 by , 14 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

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