proxygen
ErrorConstructor Struct Reference

Public Member Functions

 ErrorConstructor ()
 

Static Public Attributes

static size_t constructCount_
 

Detailed Description

Definition at line 395 of file SingletonTest.cpp.

Constructor & Destructor Documentation

ErrorConstructor::ErrorConstructor ( )
inline

Definition at line 397 of file SingletonTest.cpp.

References constructCount_.

397  {
398  if ((constructCount_++) == 0) {
399  throw std::runtime_error("first time fails");
400  }
401  }
static size_t constructCount_

Member Data Documentation

size_t ErrorConstructor::constructCount_
static

Definition at line 396 of file SingletonTest.cpp.

Referenced by ErrorConstructor().


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