Changeset 413f7f8 for src/Common/utility.h
- Timestamp:
- Jul 7, 2015, 1:49:58 PM (9 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:
- 82dd287
- Parents:
- e0ff3e6 (diff), 8686f31 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/utility.h
re0ff3e6 r413f7f8 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.