Changeset 206 in dev for trunk/abdev/BasicCompiler_Common/ParamImpl.cpp
- Timestamp:
- Jul 12, 2007, 2:58:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/ParamImpl.cpp
r182 r206 1 #include "stdafx.h" 2 1 3 #include <Program.h> 2 4 … … 197 199 } 198 200 199 UserProc *ParamImpl::_OverloadSolution( const char *name, std::vector<UserProc *> &subs, bool isEnabledReturnType ){201 const UserProc *ParamImpl::_OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType ){ 200 202 int sw=0; 201 UserProc *pUserProc;203 const UserProc *pUserProc; 202 204 pUserProc=0; 203 205 204 206 for( int level=OVERLOAD_MIN_LEVEL; level<=OVERLOAD_MAX_LEVEL; level++ ){ 205 207 206 BOOST_FOREACH( UserProc *pTempUserProc, subs ){208 BOOST_FOREACH( const UserProc *pTempUserProc, subs ){ 207 209 208 210 if(EvaluateOverloadScore( level, pTempUserProc->Params(), isEnabledReturnType?pTempUserProc->ReturnType():Type() )){ … … 237 239 238 240 if(!sw){ 239 BOOST_FOREACH( UserProc *pTempUserProc, subs ){241 BOOST_FOREACH( const UserProc *pTempUserProc, subs ){ 240 242 241 243 //エラーチェック … … 261 263 return pUserProc; 262 264 } 263 UserProc *ParamImpl::OverloadSolution( const char *name, std::vector<UserProc *> &subs, bool isEnabledReturnType ){265 const UserProc *ParamImpl::OverloadSolution( const char *name, std::vector<const UserProc *> &subs, bool isEnabledReturnType ){ 264 266 trace_for_overload( "" ); 265 267 trace_for_overload( "■■■■■■■■■■■■■■■■■■" ); 266 268 trace_for_overload( "■■■ オーバーロード解決(" << name << ")" ); 267 269 268 UserProc *result = _OverloadSolution( name, subs, isEnabledReturnType );270 const UserProc *result = _OverloadSolution( name, subs, isEnabledReturnType ); 269 271 270 272 trace_for_overload( "■■■ ここまで" );
Note:
See TracChangeset
for help on using the changeset viewer.