span icon indicating copy to clipboard operation
span copied to clipboard

‘terminate’ is not a member of ‘std’

Open mokafolio opened this issue 2 years ago • 3 comments

When compiling with exceptions disabled, I run into the following issue on gcc 12.1.0 using c++17:

error: ‘terminate’ is not a member of ‘std’
   73 |     std::terminate();
      |          ^~~~~~~~~

I need to include <exception> before span.hpp in order to fix it. Am I doing something wrong?

mokafolio avatar May 09 '23 22:05 mokafolio

Someone had the same issue with MSVC and suggested a patch #53

kimci86 avatar May 10 '23 05:05 kimci86

cool,I don't mind including <exception> myself for now but i'd appreciate it being fixed on master eventually as I add span as a submodule.

mokafolio avatar May 10 '23 15:05 mokafolio