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 authored and Daniel James committed 2014-10-22 21:27:27 +01:00
1 parent b1232d8061
commit 8c5aa5086d
1 file changed
+4
+4
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;
}