|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53496 - trunk/boost/spirit/home/support/detail/lexer
From: jamin.hanson_at_[hidden]
Date: 2009-05-31 08:54:23
Author: ben_hanson
Date: 2009-05-31 08:54:23 EDT (Sun, 31 May 2009)
New Revision: 53496
URL: http://svn.boost.org/trac/boost/changeset/53496
Log:
front() instead of [0].
Text files modified:
trunk/boost/spirit/home/support/detail/lexer/state_machine.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/spirit/home/support/detail/lexer/state_machine.hpp
==============================================================================
--- trunk/boost/spirit/home/support/detail/lexer/state_machine.hpp (original)
+++ trunk/boost/spirit/home/support/detail/lexer/state_machine.hpp 2009-05-31 08:54:23 EDT (Sun, 31 May 2009)
@@ -274,7 +274,7 @@
if (!_csm.empty ())
{
const typename detail::basic_char_state_machine<CharT>::
- state_vector *ptr_ = &_csm._sm_vector[0];
+ state_vector *ptr_ = &_csm._sm_vector.front ();
iter_._dfas = _csm._sm_vector.size ();
iter_._states = iter_._data.states = ptr_->size ();
@@ -285,7 +285,7 @@
iter_._transition = 0;
iter_._data.end_state = ptr_->front ()._end_state;
iter_._data.id = ptr_->front ()._id;
- iter_._data.unique_id = ptr_->front()._unique_id;
+ iter_._data.unique_id = ptr_->front ()._unique_id;
iter_._data.goto_dfa = ptr_->front ()._state;
iter_._data.bol_index = ptr_->front ()._bol_index;
iter_._data.eol_index = ptr_->front ()._eol_index;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk