Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 25, 2011, 2:47:49 PM (13 years ago)
Author:
landauf
Message:

output contexts are now defined as functions instead of global constants. this should avoid a static initialization fiasco and reduces the amount of context registrations (previosly it was N*M registrations with N = number of contexts and M = number of source files, now they are registered on demand). slightly worse performance though.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/libraries/util/output/OutputManager.cc

    r8776 r8777  
    180180    const std::string& OutputManager::getContextName(OutputContext context) const
    181181    {
    182         if (context != context::undefined)
     182        if (context != context::undefined())
    183183        {
    184184            boost::bimap<OutputContext, std::string>::left_map::const_iterator it = this->contexts_.left.find(context);
     
    214214    {
    215215        std::string prefix = this->getLevelName(level) + ": ";
    216         if (context != context::undefined)
     216        if (context != context::undefined())
    217217        {
    218218            std::string context_name = this->getContextName(context);
Note: See TracChangeset for help on using the changeset viewer.