From a1add0a6f6e14ad7e1bb10c1a779a3df73df7483 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 22 Sep 2001 11:52:56 +0000 Subject: [PATCH] Intel C++ fixes: Added class copy constructor. [SVN r11200] --- call_traits_test.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/call_traits_test.cpp b/call_traits_test.cpp index 1da8e2e..95dd0d8 100644 --- a/call_traits_test.cpp +++ b/call_traits_test.cpp @@ -181,6 +181,12 @@ struct comparible_UDT { int i_; comparible_UDT() : i_(2){} + comparible_UDT(const comparible_UDT& other) : i_(other.i_){} + comparible_UDT& operator=(const comparible_UDT& other) + { + i_ = other.i_; + return *this; + } bool operator == (const comparible_UDT& v){ return v.i_ == i_; } }; @@ -193,6 +199,7 @@ int main(int argc, char *argv[ ]) int i = 2; c2(i); int* pi = &i; + int a[2] = {1,2}; #if (defined(BOOST_MSVC6_MEMBER_TEMPLATES) || !defined(BOOST_NO_MEMBER_TEMPLATES)) && !defined(__ICL) call_traits_checker c3; c3(pi); @@ -201,7 +208,6 @@ int main(int argc, char *argv[ ]) call_traits_checker c5; c5(i); #if !defined (BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION) && !defined(__MWERKS__) - int a[2] = {1,2}; call_traits_checker c6; c6(a); #endif