- std::transform(sizes.begin(), sizes.end(), sizes.begin(),
- std::bind2nd(std::multiplies<int>(), sizeof(T)));
+ //
+ // std::transform(sizes.begin(), sizes.end(), sizes.begin(),
+ // std::bind2nd(std::multiplies<int>(), sizeof(T)));
+ //
+ // std::bind2nd has been removed from C++17
+
+ for( std::size_t i = 0, n = sizes.size(); i < n; ++i )
+ {
+ sizes[ i ] *= sizeof( T );
+ }