|
|
|
set и GUID
|
|||
|---|---|---|---|
|
#18+
Нужно создать set<GUID> [ccode] set<GUID> UcomprSubType; UcomprSubType.insert(MEDIASUBTYPE_AYUV); int nResult=UcomprSubType.count(SubType); [/ccode] VC++ 2003 матюгается : f:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\functional(139): error C2784: 'bool std::operator <(const std::_Tree<_Traits> &,const std::_Tree<_Traits> &)' : could not deduce template argument for 'const std::_Tree<_Traits> &' from 'const GUID' f:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\functional(139): error C2676: binary '<' : 'const GUID' does not define this operator or a conversion to a type acceptable to the predefined operator Нужно перегрузить оператор '<' для типа GUID приведите пожалуйста пример как это сделать ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 31.03.2007, 14:27 |
|
||
|
|

start [/forum/topic.php?fid=57&msg=34429182&tid=2029138]: |
0ms |
get settings: |
9ms |
get forum list: |
17ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
191ms |
get topic data: |
9ms |
get forum data: |
2ms |
get page messages: |
26ms |
get tp. blocked users: |
1ms |
| others: | 224ms |
| total: | 487ms |

| 0 / 0 |
