Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- MFC
- .gitattributes
- Mqtt
- ExtendWith
- 확인할 수 없는 외부 기호
- sts4
- esp-wroom-32d
- _sprintf
- OpenXLSX 한글
- __snprintf
- 멀티바이트 문자 집합 사용
- c++ set struct
- 설치 테스트
- OpenCPN
- LINK2001
- SQLite3
- Flutter
- git 대용량 파일
- wxWidget
- OpenCPN설치
- 사전설치
- winsock.h Broadcast
- c++ Broadcast
- git 최초 설정
- Console
- 의존주입
- Plugins
- c2678
- 정적 라이브러리에서 MFC 사용
- __vsnprintf
Archives
- Today
- Total
목록c++ set struct (1)
세상을 이롭게

set 을 사용하려 하였고, 자체적으로 선언한 struct 를 사용하는 과정에서 Insert 시 나타난 문제이다. 결론은 내가 선언한 struct 의 인자를 비교하여 넣을지 말지에 대한 부분 때문에 operator 연산자를 재정의 해주는 것을 하지 않았기 때문이다. operator를 재정의 해주어 컴파일러에게 헷갈리지 않게 알려주면 제대로 동작한다. https://stackoverflow.com/questions/5816658/how-to-have-a-set-of-structs-in-c How to have a set of structs in C++ I have a struct which has a unique key. I want to insert instances of these structs int..
C,C++
2022. 2. 16. 17:55