Remove unnecessary workaround.

Closes #9854.
This commit is contained in:
Vladimir Prus
2014-04-09 14:04:48 +04:00
parent f50b02750a
commit 37804b54d4

View File

@@ -268,12 +268,7 @@ namespace boost { namespace program_options {
void error_with_option_name::replace_token(const string& from, const string& to) const
{
#if BOOST_WORKAROUND(BOOST_MSVC, BOOST_TESTED_AT(1800))
// prevent warning C4127: conditional expression is constant
for (;;)
#else
while (1)
#endif
{
std::size_t pos = m_message.find(from.c_str(), 0, from.length());
// not found: all replaced