Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::detail::ValueBase::ExceptionRef Struct Reference

#include <value.hh>

Inheritance diagram for nix::detail::ValueBase::ExceptionRef:
gc_cleanup

Public Member Functions

 ExceptionRef (std::exception_ptr ex)
 ExceptionRef (ExceptionRef &&)=delete
 ExceptionRef (const ExceptionRef &)=delete
ExceptionRef & operator= (ExceptionRef &&)=delete
ExceptionRef & operator= (const ExceptionRef &)=delete

Public Attributes

std::exception_ptr ex

Detailed Description

Wrapper that stores a std::exception_ptr on the GC heap with a finaliser that runs the exception_ptr destructor (which is refcounted internally). This is not a part of the Failed structure to avoid cycles with finalisers, which Boehm warns about.


The documentation for this struct was generated from the following files:
  • libexpr/include/nix/expr/value.hh
  • libexpr/value.cc