Opened 9 years ago
Closed 9 years ago
#8851 closed Bugs (fixed)
unused variable warning in opt builds
| Reported by: | Owned by: | Daniel James | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | unordered |
| Version: | Boost 1.53.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
The following snippet from table.hpp:456 fails my opt build with unused variable warnings, treated as errors:
void swap_allocators(table& other, false_type)
{
// According to 23.2.1.8, if propagate_on_container_swap is
// false the behaviour is undefined unless the allocators
// are equal.
BOOST_ASSERT(node_alloc() == other.node_alloc());
}
Seems that BOOST_ASSERT is compiled away in opt builds. Easy fix, patch included.
Attachments (1)
Change History (3)
by , 9 years ago
| Attachment: | boost-unordered-patch.diff added |
|---|
comment:1 by , 9 years ago
comment:2 by , 9 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

patch that fixes the bug