From 457c1545ef930ee0dd940cb8fb3147b8bbe88a16 Mon Sep 17 00:00:00 2001 From: Eric Friedman Date: Wed, 16 Jul 2003 00:30:42 +0000 Subject: [PATCH] Borland 5.51 workaround. [SVN r19132] --- include/boost/variant/variant.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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