From 98d6eaf1e9e2bf15ddf4cd76af228dc413dbade7 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Thu, 8 Feb 2018 09:02:05 +0000 Subject: [PATCH] Add missing function bodies to test cases - it suppresses gcc warnings. --- test/has_binary_operators.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/has_binary_operators.hpp b/test/has_binary_operators.hpp index 165dad9..d7082c9 100644 --- a/test/has_binary_operators.hpp +++ b/test/has_binary_operators.hpp @@ -86,13 +86,13 @@ inline bool operator BOOST_TT_TRAIT_OP (const C&, void*) { return true; } inline bool operator BOOST_TT_TRAIT_OP (void*, const D&) { return true; } inline bool operator BOOST_TT_TRAIT_OP (const C&, const D&) { return true; } -struct private_op { private: void operator BOOST_TT_TRAIT_OP (const private_op&); }; +struct private_op { private: void operator BOOST_TT_TRAIT_OP (const private_op&) {} }; struct ambiguous_A { }; -bool operator BOOST_TT_TRAIT_OP (const ambiguous_A&, const ambiguous_A&); -struct ambiguous_B { operator ambiguous_A()const; }; +inline bool operator BOOST_TT_TRAIT_OP (const ambiguous_A&, const ambiguous_A&) { return true; } +struct ambiguous_B { operator ambiguous_A()const { return ambiguous_A(); } }; //class internal_private { ret operator BOOST_TT_TRAIT_OP (const internal_private&) const; };