public:
using ObjType = typename L::Object;
using LoadResult = std::conditional_t<std::is_same_v<C, void>,
- std::conditional_t<std::is_same_v<P, nullptr_t>, std::unique_ptr<ObjType>, P>,
+ std::conditional_t<std::is_same_v<P, std::nullptr_t>, std::unique_ptr<ObjType>, P>,
ObjType *>;
private:
given. The load call will return a raw pointer if the object was stored in
a collection, or a unique pointer otherwise.*/
template<typename L>
- SubOps<nullptr_t, L> dyn_sub()
+ SubOps<std::nullptr_t, L> dyn_sub()
{ return { *this, nullptr }; }
/** Sets the actions to be used when loading. If the map is empty,
typename Loader::SubOps<P, L, C>::LoadResult Loader::SubOps<P, L, C>::load(Args &&... args)
{
std::optional<L> ldr;
- if constexpr(std::is_same_v<P, nullptr_t>)
+ if constexpr(std::is_same_v<P, std::nullptr_t>)
{
if constexpr(!std::is_same_v<C, void> && NeedsCollection<L>::value)
ldr.emplace(*coll, std::forward<Args>(args)...);
ldr->context = name_;
parent.load_sub_with(*ldr);
- if constexpr(std::is_same_v<P, nullptr_t>)
+ if constexpr(std::is_same_v<P, std::nullptr_t>)
{
if constexpr(std::is_same_v<C, void>)
return ldr->get_object();