diff options
Diffstat (limited to 'libs/smart_ptr/test/array_fail_array_access.cpp')
-rw-r--r-- | libs/smart_ptr/test/array_fail_array_access.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/smart_ptr/test/array_fail_array_access.cpp b/libs/smart_ptr/test/array_fail_array_access.cpp index abfacbe38..4f4e3f8cb 100644 --- a/libs/smart_ptr/test/array_fail_array_access.cpp +++ b/libs/smart_ptr/test/array_fail_array_access.cpp @@ -12,8 +12,12 @@ struct X { }; +template<class T> void f( T & /*t*/ ) +{ +} + int main() { boost::shared_ptr<X> px( new X ); - px[ 0 ]; + f( px[ 0 ] ); } |