Skip to content

Commit 72db134

Browse files
whitebriancBrian White
andauthored
Minor change to six/Init.h to allow our software to build using c++17 (#758)
Co-authored-by: Brian White <brian.white1@maxar.com>
1 parent d73fc9c commit 72db134

File tree

1 file changed

+4
-0
lines changed
  • six/modules/c++/six/include/six

1 file changed

+4
-0
lines changed

six/modules/c++/six/include/six/Init.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,11 @@ namespace details
149149
{
150150
inline void throw_undefined_value()
151151
{
152+
#if CODA_OSS_cpp17
153+
throw std::bad_optional_access();
154+
#else
152155
coda_oss::details::throw_bad_optional_access();
156+
#endif
153157
}
154158
}
155159

0 commit comments

Comments
 (0)