breese / trial.protocol

Network wire protocols
11 stars 4 forks source link

Use to_address() #38

Open breese opened 4 years ago

breese commented 4 years ago

From #35

Allocator construction shouldn't use addressof(*ptr) but instead to_address(ptr) (using addressof(*ptr) here before ptr references an object of T is undefined behavior).

breese commented 4 years ago

Good catch.

When was to_address added to Boost? 1.65?

glenfe commented 4 years ago

Affirmative (1.65)