Initialize data_ in value_base default constructor

This means data_ should get initialized in the default constructor for boost::unordered::detail::unique_node (and any other inheritors), as this constructor will be called there.

This uninitialized data member was reported by Coverity (CID 49445), which unfortunately does not seem to have any convenient way to publicly, globally address issues.
This commit is contained in:
Zoey Greer
2014-09-02 12:56:06 -04:00
committed by Daniel James
parent b1232d8061
commit 8c5aa5086d

View File

@ -59,6 +59,10 @@ namespace boost { namespace unordered { namespace detail {
sizeof(value_type),
boost::alignment_of<value_type>::value>::type data_;
value_base() :
data_()
{}
void* address() {
return this;
}