diff --git a/include/boost/variant/variant.hpp b/include/boost/variant/variant.hpp index 25d3b26..85e71b0 100644 --- a/include/boost/variant/variant.hpp +++ b/include/boost/variant/variant.hpp @@ -339,6 +339,14 @@ private: // helpers, for visitor interfaces (below) return visitor_(operand); } +#if BOOST_WORKAROUND(__BORLANDC__, <= 0x0551) + template + result_type visit(const T& operand) + { + return visitor_(operand); + } +#endif + #else // defined(BOOST_NO_VOID_RETURNS) template