id summary reporter owner description type status milestone component version severity resolution keywords cc 3285 Boost::Circular_Buffer: Copy Constructor Elicits a Warning from GCC 4.0.1 about Parent Constructor gerickson@… Jan Gaspar "When compiling code that uses, either directly or indirectly, boost::circular_buffer (e.g. accumulators and statistics) with a copious level of warnings enabled and warnings treated as errors enabled, the following is generated for boost::circular_buffer: /Developer/usr/bin/gcc-4.0 -x c++ -arch i386 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -W -Wall -Wcast-align -Wextra -Wformat-security -Wpointer-arith -Wwrite-strings -Werror -Wreturn-type -Wformat -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wshadow -Wsign-compare -DDEBUG=1 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mfix-and-continue -fvisibility-inlines-hidden -mmacosx-version-min=10.4 -gdwarf-2 -F${BuildRoot}/Debug -I${BuildRoot}/Debug/include -I${BuildRoot}/Debug/boost/include -c test.cpp -o test.o cc1plus: warnings being treated as errors ${BuildRoot}/Debug/boost/include/boost/circular_buffer/base.hpp: In copy constructor ‘boost::circular_buffer::circular_buffer(const boost::circular_buffer&) [with T = float, Alloc = std::allocator]’: ${BuildRoot}/Debug/boost/include/boost/accumulators/statistics/rolling_window.hpp:39: instantiated from ‘boost::accumulators::detail::accumulator_wrapper::accumulator_wrapper(const boost::accumulators::detail::accumulator_wrapper&) [with Accumulator = boost::accumulators::impl::rolling_window_plus1_impl, Feature = boost::accumulators::tag::rolling_window_plus1]’ ${BuildRoot}/Debug/boost/include/boost/fusion/container/list/cons.hpp:85: instantiated from ‘boost::fusion::cons::cons(const boost::fusion::cons&) [with Car = boost::accumulators::detail::accumulator_wrapper, boost::accumulators::tag::rolling_window_plus1>, Cdr = boost::fusion::cons, boost::accumulators::tag::rolling_sum>, boost::fusion::cons, boost::accumulators::tag::rolling_count>, boost::fusion::cons, boost::accumulators::tag::rolling_mean>, boost::fusion::nil> > >]’ ${BuildRoot}/Debug/boost/include/boost/accumulators/framework/accumulator_set.hpp:163: instantiated from ‘boost::accumulators::accumulator_set::accumulator_set(const A1&) [with A1 = boost::parameter::aux::tagged_argument, size_t>, Sample = float, Features = boost::accumulators::stats, Weight = void]’ test.cpp:160: instantiated from here '''${BuildRoot}/Debug/boost/include/boost/circular_buffer/base.hpp:1069: warning: base class ‘class boost::cb_details::debug_iterator_registry’ should be explicitly initialized in the copy constructor''' The fix for this, as suggested by the compiler, is to explicitly invoke the parent constructor in the copy constructor when debugging is enabled (see attached patch)." Bugs closed To Be Determined circular_buffer Boost 1.39.0 Problem fixed