boostorg / core

Boost Core Utilities
133 stars 83 forks source link

`pointer_traits<void*>::template rebind<int>` is not `int*` #111

Closed cmazakas closed 2 years ago

cmazakas commented 2 years ago

Relevant Compiler Explorer link: https://godbolt.org/z/xo3xKa34e (credit to Ed Catmur on slack)

Boost version is 1.79

It seems like Core's implementation of pointer_traits isn't behaving the same as its STL counterpart and is incorrectly producing a int** pointer.

glenfe commented 2 years ago

Thanks, looks like I introduced this recently. I'll take care of it. The C++11 aliases deserve some tests too.

glenfe commented 2 years ago

Should be addressed in d74140983da3379d08f0a0bfc3dd36fc6d452100 ( following 1e5c86eb9d639404ba1dadd06d0ddb466e7af4b3 )