|
#ifdef _RWSTD_NO_CLASS_PARTIAL_SPEC |
|
void *vd_ptr = alloc_.allocate(sz, is_allocated_? eback() : 0); |
|
Ch *new_ptr = static_cast<Ch *>(vd_ptr); |
|
#else |
|
Ch *new_ptr = alloc_.allocate(sz, is_allocated_? eback() : 0); |
|
#endif |
Should use allocator_traits when at least C++11 is detected instead; the above code produces a deprecation warning in some compiler configurations.
There might be some other code that should be updated as well, but this was the only one that I noticed a warning being flagged on (when compiling with VS2017 in C++17 mode).
format/include/boost/format/alt_sstream_impl.hpp
Lines 40 to 45 in 7f4131b
Should use
allocator_traitswhen at least C++11 is detected instead; the above code produces a deprecation warning in some compiler configurations.There might be some other code that should be updated as well, but this was the only one that I noticed a warning being flagged on (when compiling with VS2017 in C++17 mode).