Menu

#60 VS2012 syntax error

1.10
open
nobody
None
1
2014-08-18
2014-08-18
No

auto_buffer.hpp, line 156
divided_value = (max_value < divided_value_)
? max_value
: divided_value_

results in following errors:
1>D:\Dev4\ThirdParty\BS\Includes\stlsoft\stlsoft/memory/auto_buffer.hpp(156): error C2059: syntax error : ')'
1> D:\Dev4\ThirdParty\BS\Includes\stlsoft\stlsoft/memory/auto_buffer.hpp(166) : see reference to class template instantiation 'stlsoft::auto_buffer_internal_size_calculator<t>' being compiled
1>D:\Dev4\ThirdParty\BS\Includes\stlsoft\stlsoft/memory/auto_buffer.hpp(159): error C2143: syntax error : missing ')' before ';'
1>D:\Dev4\ThirdParty\BS\Includes\stlsoft\stlsoft/memory/auto_buffer.hpp(159): error C2143: syntax error : missing '}' before ')'
1>D:\Dev4\ThirdParty\BS\Includes\stlsoft\stlsoft/memory/auto_buffer.hpp(159): error C2059: syntax error : ')'
1>D:\Dev4\ThirdParty\BS\Includes\stlsoft\stlsoft/memory/auto_buffer.hpp(159): error C2238: unexpected token(s) preceding ';'</t>

removing brackets solves this problem
divided_value = max_value < divided_value_
? max_value
: divided_value_

Discussion


Log in to post a comment.