From 458dffdab9fadb550fc9660505bbc31348a27170 Mon Sep 17 00:00:00 2001 From: Steven Watanabe Date: Sat, 17 Apr 2010 20:13:27 +0000 Subject: [PATCH] Work around over-eager ADL with msvc-10.0. Refs #4108 [SVN r61344] --- include/boost/smart_ptr/detail/sp_convertible.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/smart_ptr/detail/sp_convertible.hpp b/include/boost/smart_ptr/detail/sp_convertible.hpp index fe44069..eb39797 100644 --- a/include/boost/smart_ptr/detail/sp_convertible.hpp +++ b/include/boost/smart_ptr/detail/sp_convertible.hpp @@ -45,7 +45,7 @@ template< class Y, class T > struct sp_convertible static yes f( T* ); static no f( ... ); - enum _vt { value = sizeof( f( static_cast(0) ) ) == sizeof(yes) }; + enum _vt { value = sizeof( (f)( static_cast(0) ) ) == sizeof(yes) }; }; struct sp_empty