Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#8604 closed Bugs (fixed)

constexpr does not imply 'const' in C++14

Reported by: Marshall Clow Owned by: viboes
Milestone: Boost 1.54.0 Component: chrono
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

In C++11, constexpr methods are implicitly const. In C++14, they are not.

Chrono has four methods that are marked as constexpr, but not const. They should be marked const.

Change History (4)

comment:1 by Marshall Clow, 9 years ago

(In [84411]) Marked four constexpr methods as const in preparation for C++1y; Refs #8604

comment:2 by viboes, 9 years ago

Milestone: To Be DeterminedBoost 1.55.0
Status: newassigned

comment:3 by viboes, 9 years ago

Resolution: fixed
Status: assignedclosed

(In [84621]) Chrono: merge [84411] to fix #8604.

comment:4 by viboes, 9 years ago

Milestone: Boost 1.55.0Boost 1.54.0
Note: See TracTickets for help on using tickets.