Open xaxxon opened 6 years ago
in clang, I get warnings on two lines:
union { ; T m_values[1]; };
For unnecessary ; and
;
return sizeof(leaf_node) + sizeof(T*[size-1]);
for using VLAs, which aren't a part of C++
Simply removing the ; in the union and changing the sizeof line to:
return sizeof(leaf_node) + sizeof(T*) * (size-1);
seems to make the compiler happy.
in clang, I get warnings on two lines:
For unnecessary
;
andfor using VLAs, which aren't a part of C++
Simply removing the ; in the union and changing the sizeof line to:
seems to make the compiler happy.