Bertini 2 d882924 (2026-10-06 19:56 UTC)
Numerical algebraic geometry library (C++ core)
Loading...
Searching...
No Matches
bertini::policy::RaiseExceptionWithTypeNamesInMessage< VisitedT, RetT > Struct Template Reference

A policy that throws (with the offending type names) when an unknown visitor is encountered. More...

#include <visitable.hpp>

Static Public Member Functions

static RetT OnUnknownVisitor (VisitedT &a, VisitorBase &)
 Behaviour on an unknown visitor: throw a std::runtime_error naming the visited type.

Detailed Description

template<class VisitedT, typename RetT>
struct bertini::policy::RaiseExceptionWithTypeNamesInMessage< VisitedT, RetT >

A policy that throws (with the offending type names) when an unknown visitor is encountered.

Member Function Documentation

◆ OnUnknownVisitor()

template<class VisitedT, typename RetT>
RetT bertini::policy::RaiseExceptionWithTypeNamesInMessage< VisitedT, RetT >::OnUnknownVisitor ( VisitedT & a,
VisitorBase &  )
inlinestatic

Behaviour on an unknown visitor: throw a std::runtime_error naming the visited type.