Conform to std::pointer_traits requirements #32

Merged
merged 1 commit into from Jan 19, 2017

Conversation

Projects
None yet
2 participants
Contributor

treh commented Jan 13, 2017 edited

offset_ptr<T, ...>::rebind must be offset_ptr<U, ...> directly

to avoid breaking older pointer_traits implementations (like in Visual Studio 2015),
'other' is added as typedef so offset_ptr<T, ...>::rebind< U >::other still works

@treh treh Conform to std::pointer_traits requirements
offset_ptr<T, ...>::rebind<U> must be offset_ptr<U, ...> directly

to avoid breaking older pointer_traits implementations (like in Visual Studio 2015),
'other' is added as typedef so offset_ptr<T, ...>::rebind<U>::other still works
46a1364

@igaztanaga igaztanaga merged commit 46a1364 into boostorg:develop Jan 19, 2017

Collaborator

igaztanaga commented Jan 19, 2017

Many thanks for the patch, great compatibility trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment