From f3cf1fbd0e9867c6a054957f3b1ef95a1791f6ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrzej=20Krzemie=C5=84ski?= Date: Tue, 2 Jun 2015 17:24:54 +0200 Subject: [PATCH] define iterator_t only if it's referenced I keep getting this unused typedef warning when compiling QuickBook. --- include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp b/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp index b26f534751..b00e2b4502 100644 --- a/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp +++ b/include/boost/spirit/home/classic/core/non_terminal/impl/grammar.ipp @@ -282,12 +282,12 @@ struct grammar_definition #if !defined(BOOST_SPIRIT_SINGLE_GRAMMAR_INSTANCE) typedef impl::grammar_helper_base helper_base_t; typedef grammar_helper_list helper_list_t; - typedef typename helper_list_t::vector_t::reverse_iterator iterator_t; helper_list_t& helpers = grammartract_helper_list::do_(self); # if defined(BOOST_INTEL_CXX_VERSION) + typedef typename helper_list_t::vector_t::reverse_iterator iterator_t; for (iterator_t i = helpers.rbegin(); i != helpers.rend(); ++i) (*i)->undefine(self); # else