Next: , Up: Using the Dezyne locator to distribute runtime objects   [Contents]


3.7.1.1 Default runtime objects

The dzn::locator creates two objects that are used by all Dezyne components, namely an instance of std::clog (which is an object of type std::ostream) for logging purposes and a default dzn::illegal_handler:

struct locator
  {
  public:
    locator()
    {
      static illegal_handler ih;
      set(std::clog).set(ih);
    }