Opened 7 years ago
Closed 6 years ago
#11696 closed Bugs (fixed)
variant& operator=(variant&& rhs) never noexcept under clang
| Reported by: | Owned by: | Antony Polukhin | |
|---|---|---|---|
| Milestone: | Boost 1.62.0 | Component: | variant |
| Version: | Boost 1.57.0 | Severity: | Problem |
| Keywords: | Cc: |
Description
The noexcept specification for variant's move assignment operator is compiled only conditionally under the following preprocessor switch:
#if !defined(__GNUC__) || (__GNUC__ != 4) || (__GNUC_MINOR__ > 6)
clang 3.6 defines the gnu macros as if it were gcc 4.2. Therefore the above switch evaluates to false and the noexcept specification is not visible under clang.
Change History (4)
comment:1 by , 7 years ago
| Component: | None → variant |
|---|---|
| Owner: | set to |
comment:2 by , 6 years ago
| Milestone: | To Be Determined → Boost 1.62.0 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
comment:3 by , 6 years ago
comment:4 by , 6 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.

Fixed in 5bfb9db, will be merged to master branch as soon as all the regression tests pass.
Thanks for the report!