Skip to content

‘terminate’ is not a member of ‘std’ #55

Description

@mokafolio

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?

Activity

  1. kimci86 commented on May 10, 2023

    @kimci86
    Contributor

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

  2. mokafolio commented on May 10, 2023

    @mokafolio
    Author

    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.

  3. dvileta commented on Jan 22, 2025

    @dvileta

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

    thanks for mentioning #53 , that also fixed compiling for ARM GNU Toolchain 12.3.rel1

    Who can merge that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions