Changeset 2871210 for src/Common
- Timestamp:
- Jul 3, 2015, 6:08:20 PM (10 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- f6d7e0f
- Parents:
- 0df292b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/Common/utility.h ¶
r0df292b r2871210 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Jun 8 14:43:54201513 // Update Count : 1 312 // Last Modified On : Thu Jul 2 18:04:41 2015 13 // Update Count : 16 14 14 // 15 15 … … 86 86 } 87 87 88 static inline std::string assign_strptr( std::string *str ) {88 static inline std::string assign_strptr( const std::string *str ) { 89 89 if ( str == 0 ) { 90 90 return ""; … … 97 97 } 98 98 99 template< class T, typename ResultType, ResultType (T::* memfunc)() >99 template< class T, typename ResultType, ResultType( T::* memfunc )() > 100 100 ResultType dispatch( T *pT ) { 101 101 return (pT->*memfunc)();
Note: See TracChangeset
for help on using the changeset viewer.