template<class Tag, typename T>
class gmx::ExceptionInfo< Tag, T >
Stores additional context information for exceptions.
- Template Parameters
-
Tag Tag type (typically, a forward-declared struct that is not defined anywhere) that makes all ExceptionInfo types unique, even if they have the same value type. T Type of value this object stores. Needs to be copy-constructible.
Example of declaring a new info type that stores an integer:
typedef ExceptionInfo<struct ExceptionInfoMyInfo_, int> ExceptionInfoMyInfo;
Read more here: Source link