Skip to content

Commit

Permalink
[checkpoint] length is not constexpr on all targets, reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
mbs-octoml committed Sep 18, 2021
1 parent 17c7de9 commit 48dfa1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/runtime/logging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,9 @@ namespace detail {

namespace {
constexpr const char* kSrcPrefix = "/src/";
constexpr const size_t kSrcPrefixLength = std::char_traits<const char>::length(kSrcPrefix);
// Note: Better would be std::char_traits<const char>::length(kSrcPrefix) but it is not
// a constexpr on all compilation targets.
constexpr const size_t kSrcPrefixLength = 5;
constexpr const char* kDefaultKeyword = "DEFAULT";
} // namespace

Expand Down

0 comments on commit 48dfa1c

Please sign in to comment.