"stephane" <st*************@bluewin.ch> wrote in message
news:42**********************@news.sunrise.ch...
Why does my compiler says there is a syntax error on this instruction?
Because there is.
if !(position<v.m_size && position>0)
Tthe entire conditional expression of 'if' must
be inside the parentheses:
if (!position<v.m_size && position>0)
Then you need to decide which expression to which
you want to apply the '!' operator:
'position', or
'position < v.m_size', or
'position < v.m_size && position', or
'position < v.m_size && position > 0'
and supply the appropriate parentheses.
-Mike