Ignore:
Timestamp:
Mar 30, 2023, 4:05:59 PM (2 years ago)
Author:
caparson <caparson@…>
Branches:
ADT, ast-experimental, master
Children:
bd72c284
Parents:
d24b1985 (diff), ff443e5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/utility.h

    rd24b1985 r9082d7e8  
    2222#include <list>
    2323#include <memory>
    24 #include <sstream>
    2524#include <string>
    2625#include <type_traits>
     
    143142        dst.swap( src );
    144143}
    145 
    146 template < typename T >
    147 void toString_single( std::ostream & os, const T & value ) {
    148         os << value;
    149 }
    150 
    151 template < typename T, typename... Params >
    152 void toString_single( std::ostream & os, const T & value, const Params & ... params ) {
    153         os << value;
    154         toString_single( os, params ... );
    155 }
    156 
    157 template < typename ... Params >
    158 std::string toString( const Params & ... params ) {
    159         std::ostringstream os;
    160         toString_single( os, params... );
    161         return os.str();
    162 }
    163 
    164 #define toCString( ... ) toString( __VA_ARGS__ ).c_str()
    165144
    166145template< typename... Args >
Note: See TracChangeset for help on using the changeset viewer.