constexpr const char()

in cxx/fbjni/detail/SimpleFixedString.h [103:116]


constexpr const char (&checkNullTerminated(const char (&a)[N]) noexcept)[N] {
  // Strange decltype(a)(a) used to make MSVC happy.
  if (a[N - 1u] == '\0'
#ifndef NDEBUG
          // In Debug mode, guard against embedded nulls:
          && N - 1u == detail::constexpr_strlen_internal(a, 0u)
#endif
      ) {
    return decltype(a)(a);
  } else {
    assertNotNullTerminated();
    return decltype(a)(a);
  }
}