1. error LNK2019: 無法解析的外部符號 "class boost::system::error_category const & __cdecl boost::system::system_category(void)"
解決:X86與X64庫不匹配引起的,需要編譯一個對應版本的庫。即boost庫的版本和VS的平台需要一致。
1. 不定義該運算符或到預定義運算符可接收的類型的轉換
因為std::set
是需要排序的,因此需要把std::<struct
>
中定義的struct、class重載operator < 方法。std::map<key, value>
中的key也需要如此。