made "ingnore" a const object to avoid linker errors

[SVN r20449]
This commit is contained in:
Joel de Guzman
2003-10-21 23:25:17 +00:00
parent c8e03a518b
commit 9734556efe
2 changed files with 233 additions and 239 deletions

View File

@ -589,9 +589,7 @@ struct swallow_assign {
} // namespace detail } // namespace detail
// "ignore" allows tuple positions to be ignored when using "tie". // "ignore" allows tuple positions to be ignored when using "tie".
namespace { detail::swallow_assign const ignore = detail::swallow_assign();
detail::swallow_assign ignore;
}
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
// The call_traits for make_tuple // The call_traits for make_tuple

View File

@ -838,12 +838,8 @@ namespace tuples {
detail::assign_to_pointee<T10>(&t10)); detail::assign_to_pointee<T10>(&t10));
} }
// "ignore" allows tuple positions to be ignored when using "tie". // "ignore" allows tuple positions to be ignored when using "tie".
namespace {
#if (defined(BOOST_MSVC) && BOOST_MSVC <= 1300) || (defined(__DECCXX_VER) && __DECCXX_VER <= 60590031) detail::swallow_assign const ignore = detail::swallow_assign();
static
#endif
detail::swallow_assign ignore;
}
} // namespace tuples } // namespace tuples
} // namespace boost } // namespace boost