From ae573fa3cc10ddbd971485a2fe915a3245233253 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Mon, 26 Apr 2010 10:24:28 +0000 Subject: [PATCH] Hopefully fixed config_test/darwin-4.0.1 error, "heap_object_wrapper(const &) is private". Added bool to pod_struct. [SVN r61572] --- test/boost_no_com_value_init.ipp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/boost_no_com_value_init.ipp b/test/boost_no_com_value_init.ipp index 2bb59464..654a3ba9 100644 --- a/test/boost_no_com_value_init.ipp +++ b/test/boost_no_com_value_init.ipp @@ -24,6 +24,7 @@ namespace boost_no_complete_value_initialization // A POD struct. struct pod_struct { + bool b; enum_type e; char c; unsigned char uc; @@ -40,6 +41,7 @@ namespace boost_no_complete_value_initialization bool is_value_initialized(const pod_struct& arg) { return + arg.b == 0 && arg.e == 0 && arg.c == 0 && arg.uc == 0 && @@ -393,7 +395,7 @@ namespace boost_no_complete_value_initialization // The following functions are intentionally left unimplemented // (as if deleted, "= delete", in C++0x): heap_object_wrapper(const heap_object_wrapper&); - void operator=(heap_object_wrapper); + void operator=(const heap_object_wrapper&); public: heap_object_wrapper() @@ -890,7 +892,7 @@ namespace boost_no_complete_value_initialization << num_failures_of_temporaries << '+' << num_failures_of_heap_objects << "): " << total_num_failures - << "\nDetected by boost_no_complete_value_initialization::test() revision 19." + << "\nDetected by boost_no_complete_value_initialization::test() revision 20." << std::endl; } return static_cast(total_num_failures);