UG4 / ugcore

The core functionality of UG4. Includes sources, build-scripts, and utility scripts.
https://github.com/UG4/ugcore
Other
36 stars 23 forks source link

SmartPtr: explicit cast to bool #59

Closed felix-salfelder closed 2 years ago

felix-salfelder commented 2 years ago

Making use more consistent with ordinary pointers, std::shared_ptr and the like.

LogashenkoDL commented 2 years ago

It would be probably even better to relate ug4's SmartPtr to std::shared_ptr, so that it is somehow an alias for it.

felix-salfelder commented 1 year ago

On Tue, May 17, 2022 at 06:24:16AM -0700, Dmitry Logashenko wrote:

It would be probably even better to relate ug4's SmartPtr to std::shared_ptr, so that it is somehow an alias for it.

Thanks, yes. My idea was to do it one step at a time, as-needed.

ug::Variant is a similar case..