Skip to content

Commit e46826d

Browse files
committed
fix: remove all constexpr
Signed-off-by: syaojun <libevent@yeah.net>
1 parent d74de26 commit e46826d

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

cpp/src/graphar/status.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -233,31 +233,31 @@ class Status {
233233
}
234234

235235
/** Return true iff the status indicates success. */
236-
constexpr bool ok() const { return (state_.get() == nullptr); }
236+
bool ok() const { return (state_.get() == nullptr); }
237237

238238
/** Return true iff the status indicates a key lookup error. */
239-
constexpr bool IsKeyError() const { return code() == StatusCode::kKeyError; }
239+
bool IsKeyError() const { return code() == StatusCode::kKeyError; }
240240
/** Return true iff the status indicates a type match error. */
241-
constexpr bool IsTypeError() const {
241+
bool IsTypeError() const {
242242
return code() == StatusCode::kTypeError;
243243
}
244244
/** Return true iff the status indicates invalid data. */
245-
constexpr bool IsInvalid() const { return code() == StatusCode::kInvalid; }
245+
bool IsInvalid() const { return code() == StatusCode::kInvalid; }
246246
/** Return true iff the status indicates an index out of bounds. */
247-
constexpr bool IsIndexError() const {
247+
bool IsIndexError() const {
248248
return code() == StatusCode::kIndexError;
249249
}
250250
/** Return true iff the status indicates an yaml parse related failure. */
251-
constexpr bool IsYamlError() const {
251+
bool IsYamlError() const {
252252
return code() == StatusCode::kYamlError;
253253
}
254254
/** Return true iff the status indicates an arrow-related failure. */
255-
constexpr bool IsArrowError() const {
255+
bool IsArrowError() const {
256256
return code() == StatusCode::kArrowError;
257257
}
258258

259259
/** Return the StatusCode value attached to this status. */
260-
constexpr StatusCode code() const {
260+
StatusCode code() const {
261261
return ok() ? StatusCode::kOK : state_->code;
262262
}
263263

0 commit comments

Comments
 (0)