CompilerTeaching / Pegmatite

A library for reusable parsers
http://compilerteaching.github.io/pegmatite/
BSD 2-Clause "Simplified" License
16 stars 9 forks source link

Added include <memory> to parser.hh in order to use shared_ptr #1

Closed danshapero closed 10 years ago

danshapero commented 10 years ago

In the parser.hh file, the shared_ptr data type is used, which is provided by the header file memory of the standard template library. However, parser.hh does not include memory, which causes compilation to fail with both GCC and clang; with the added include, the library compiles with clang. (But not with GCC, for some reason.)