From e6aadc76228be5d3f69086f867088ce1fabf0697 Mon Sep 17 00:00:00 2001 From: K-ballo Date: Wed, 9 Jul 2014 21:33:39 -0300 Subject: [PATCH] Cast anonymous enum to avoid instantiating Boost.Range operators --- .../boost/spirit/home/support/detail/lexer/state_machine.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/spirit/home/support/detail/lexer/state_machine.hpp b/include/boost/spirit/home/support/detail/lexer/state_machine.hpp index 0e94f95c8f..46e50c9a0a 100644 --- a/include/boost/spirit/home/support/detail/lexer/state_machine.hpp +++ b/include/boost/spirit/home/support/detail/lexer/state_machine.hpp @@ -357,7 +357,7 @@ class basic_state_machine { const std::size_t col_ = lu_->at (alpha_index_); - if (col_ != dead_state_index) + if (col_ != static_cast(dead_state_index)) { chars_[col_ - dfa_offset] += static_cast (alpha_index_);