HomePhabricator

Make CSerAction's ForRead() constexpr

Description

Make CSerAction's ForRead() constexpr

The CSerAction's ForRead() method does not depend on any runtime
data, so guarantee that requests to it can be optimized out by
making it constexpr.

Suggested by Cory Fields.

Details

Provenance
Pieter Wuille <pieter.wuille@gmail.com>Authored on Oct 29 2016, 00:07
deadalnixPushed on May 14 2017, 22:04
Parents
rABCa603925c77d7: Avoid -Wshadow errors
Branches
Unknown
Tags
Unknown

Event Timeline

Pieter Wuille <pieter.wuille@gmail.com> committed rABCa2929a26f5cf: Make CSerAction's ForRead() constexpr (authored by Pieter Wuille <pieter.wuille@gmail.com>).Nov 7 2016, 21:56