[완료] bind2nd에서 레퍼런스의 레퍼런스 타입 만들기 에러가 납니다.
글쓴이: purewell / 작성시간: 수, 2007/12/05 - 4:22오후
아래 소스에서 다음과 같은 오류가 납니다.
...forming reference to reference type...
레퍼런스의 레퍼런스 타입을 만들 수 없다는 오류 같은데, 왜 생기는지 알 수가 없습니다. OTL
#include <list>
#include <algorithm>
#include <functional>
using namespace std;
typedef struct mystorage
{
int i;
char c;
} mystorage;
typedef list<char*> mylist;
inline
bool
check(const mystorage& s, int id)
{
return s.i == id;
}
int
main(int,char**)
{
mylist lst;
mylist::iterator ib;
bind2nd(ptr_fun(check), 10);
return 0;
}Forums:


자답입니다. -_- 지금
자답입니다.
-_- 지금 표준으로는 방법이 없습니다.
다음 계정안 때까지 boost를 쓰든 막고 품든...
_____________________________
언제나 맑고픈 샘이가...
http://purewell.biz
_____________________________
언제나 맑고픈 샘이가...
http://purewell.biz
댓글 달기