Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::RefImplicitlyUpcastableTo Concept Reference

#include <ref.hh>

Concept definition

template<typename From, typename To>
concept RefImplicitlyUpcastableTo = std::is_convertible_v<From *, To *>
Definition ref.hh:50

Detailed Description

Concept for implicit ref covariance: From* must be implicitly convertible to To*.

This allows implicit upcasts (Derived -> Base) but rejects downcasts.