Change-Id: Idf81fb96dd32df8f96b5bc688bdce290265ff372
Reviewed-on: https://chromium-review.googlesource.com/430230
Reviewed-by: Jim Stichnoth <stichnot@chromium.org>
}
// Define NoRegisterValue as an enum value so that it can be used as an
// argument for the public ctor if desired.
- enum { NoRegisterValue = std::numeric_limits<BaseType>::max() };
+ enum : BaseType { NoRegisterValue = std::numeric_limits<BaseType>::max() };
bool hasValue() const { return Value != NoRegisterValue; }
bool hasNoValue() const { return !hasValue(); }