Changeset 116:55042ce457ee in rrlib_logging


Ignore:
Timestamp:
10.03.2014 16:00:55 (6 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
13.10
Children:
117:5b163b2cb949, 120:3f8342f9fb3e
Phase:
public
Message:

Bugfix for clang: removed ambiguous operator for function pointers

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • messages/tStream.h

    r110 r116  
    240240  } 
    241241 
    242   template <typename T, typename ... Args> 
    243   inline tStream &operator << (T(*function)(Args...)) 
    244   { 
    245     *this << reinterpret_cast<void *>(function); 
    246     return *this; 
    247   } 
    248  
    249242  /*! Streaming operator for functions (forwarder) 
    250243   * 
  • test/test_messages.cpp

    r110 r116  
    167167  RRLIB_LOG_PRINT(DEBUG, "Const-Pointer: ", b); 
    168168  RRLIB_LOG_PRINT(DEBUG, "Bool: ", true, false); 
    169   RRLIB_LOG_PRINT(DEBUG, "Function: ", main); 
    170169  RRLIB_LOG_PRINT(DEBUG, "Mal noch einzelne Zeichen: ", 'a', '\0', 'b'); 
    171170 
Note: See TracChangeset for help on using the changeset viewer.