boostorg / core

Boost Core Utilities
132 stars 87 forks source link

move implicit_cast to core? #49

Closed HDembinski closed 4 years ago

HDembinski commented 5 years ago

The boost.conversion library contains implicit_cast, which has a simple implementation, no external dependencies and seems useful to have in boost.core. It would also be nice to document the cast better, for me https://stackoverflow.com/questions/868306/what-is-the-difference-between-static-cast-and-implicit-cast was useful to read.

anshu-khare-design commented 4 years ago

I have worked on this.

glenfe commented 4 years ago

@HDembinski I don't think we want to do this. Unlike say, use_default, this doesn't exist on public interfaces and is trivial enough to live in detail namespaces if a dependency on Conversion is not desirable. No dependency cycles are broken or would be avoided by relocating this facility.