Skip to content

std::system_error on calc example #23

Closed
@mattulbrich

Description

@mattulbrich

Hi! I tried to run calc.cc from the example directory. Unfortunately, I received an error message

     $ cd example/
     $ g++ -I .. -std=c++11 calc.cc
     $ ./a.out 2+3*4
     Terminate called after throwing an instance of 'std::system_error'
       what():  Unknown error -1
     Aborted (core dumped)

This is both with g++ and with clang++. Apparently this call to std::call_once is responsible
https://github.com/yhirose/cpp-peglib/blob/21934dd1ce/peglib.h#L1483

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