15
今天我遇到了這段代碼(boost/type_index/type_index_facade.hpp,第252-259行)。C++中操作符之間的逗號
/// noexcept comparison operators for type_index_facade classes.
bool operator ==, !=, <, ... (const type_index_facade& lhs, const type_index_facade& rhs) noexcept;
/// noexcept comparison operators for type_index_facade and it's TypeInfo classes.
bool operator ==, !=, <, ... (const type_index_facade& lhs, const TypeInfo& rhs) noexcept;
/// noexcept comparison operators for type_index_facade's TypeInfo and type_index_facade classes.
bool operator ==, !=, <, ... (const TypeInfo& lhs, const type_index_facade& rhs) noexcept;
有人可以解釋我是什麼意思?我像以前從未見過「==,=,<,...!」
我不知道它是什麼,但不是C++。 – 101010
@ 101010它是C++ 11 –
@FirstStep這是無效的C++ 11,正如頂部答案 –