diff options
Diffstat (limited to 'odb/cxx-token.hxx')
-rw-r--r-- | odb/cxx-token.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/odb/cxx-token.hxx b/odb/cxx-token.hxx index 6478fc1..ae5fe60 100644 --- a/odb/cxx-token.hxx +++ b/odb/cxx-token.hxx @@ -12,7 +12,11 @@ struct cxx_token { - cxx_token (location_t l, unsigned int t): loc (l), type (t), node (0) {} + cxx_token (location_t l, + unsigned int t, + std::string const& lt = std::string (), + tree n = 0) + : loc (l), type (t), literal (lt), node (n) {} location_t loc; // Location of this token. unsigned int type; // Untyped cpp_ttype. |