MADNESS 0.10.1
Public Member Functions | Public Attributes | List of all members
madness::detail::ThreadBindingMessage Struct Reference

Owns the (long) diagnostic text of a ThreadBindingException. More...

#include <thread_binding.h>

Inheritance diagram for madness::detail::ThreadBindingMessage:
Inheritance graph
[legend]

Public Member Functions

 ThreadBindingMessage (std::string t)
 

Public Attributes

std::shared_ptr< const std::string > text
 

Detailed Description

Owns the (long) diagnostic text of a ThreadBindingException.

MadnessException only stores a const char*, so the text has to live somewhere else. It is held through a shared_ptr so that the copies C++ is allowed to make while the exception is in flight keep pointing at the same, still-alive buffer.

Constructor & Destructor Documentation

◆ ThreadBindingMessage()

madness::detail::ThreadBindingMessage::ThreadBindingMessage ( std::string  t)
inlineexplicit

Member Data Documentation

◆ text

std::shared_ptr<const std::string> madness::detail::ThreadBindingMessage::text

The documentation for this struct was generated from the following file: