Changeset 55:069167f4a561 in rrlib_util


Ignore:
Timestamp:
07.05.2012 19:06:35 (8 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • variadic_templates.h

    r54 r55  
    6464//---------------------------------------------------------------------- 
    6565 
    66 template <typename THead> 
    67 inline void ProcessVariadicValues(std::function<void(const THead &)> process_value) 
     66template <typename TElement> 
     67inline void ProcessVariadicValues(std::function<void(const TElement &)> process_value) 
    6868{} 
    6969 
    70 template <typename THead, typename ... TTail> 
     70template <typename TElement, typename THead, typename ... TTail> 
    7171//inline void ProcessVariadicValues(const THead &head, const TTail &... tail, std::function<void(const THead &)> process_value) FIXME: will probably be valid with gcc 4.6 and does not need hints at instantiation 
    72 inline void ProcessVariadicValues(std::function<void(const THead &)> process_value, const THead &head, const TTail &... tail) 
     72inline void ProcessVariadicValues(std::function<void(const TElement &)> process_value, const THead &head, const TTail &... tail) 
    7373{ 
    7474  process_value(head); 
Note: See TracChangeset for help on using the changeset viewer.