summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-06-20 10:06:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-06-20 10:06:20 +0200
commitd12531b8c82d7c728df660f9268df993079ba261 (patch)
treed253fa7c43b0ae678c43c4c254decb46ed182a89 /cli
parente2605ba3c9ca35524b0c86e74ffa37bee548aef3 (diff)
Add forward declarations for parser to allow custom specializations
Diffstat (limited to 'cli')
-rw-r--r--cli/runtime-header.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/runtime-header.cxx b/cli/runtime-header.cxx
index 4e9ba59..21d3723 100644
--- a/cli/runtime-header.cxx
+++ b/cli/runtime-header.cxx
@@ -389,5 +389,12 @@ generate_runtime_header (context& ctx)
<< "};";
}
+ // Parser class template. Provide a forward declaration to allow
+ // custom specializations.
+ //
+ os << "template <typename X>" << endl
+ << "struct parser;"
+ << endl;
+
ctx.cli_close ();
}