-2
如果不是8192,則編譯器告訴我出錯爲什麼在boost :: array <char,8192>中必須是8192?
錯誤C2446: '=!':無論從 '的boost ::數組*' 轉換爲 '的boost ::數組 *' C:\升壓\ boost_1_42 \ boost \ smart_ptr \ shared_ptr.hpp 391
如何理解8192?
如果不是8192,則編譯器告訴我出錯爲什麼在boost :: array <char,8192>中必須是8192?
錯誤C2446: '=!':無論從 '的boost ::數組*' 轉換爲 '的boost ::數組 *' C:\升壓\ boost_1_42 \ boost \ smart_ptr \ shared_ptr.hpp 391
如何理解8192?
與std::vector
不同(對於一個明顯的比較),boost::array
具有固定大小,您必須將其作爲第二個模板參數傳遞。
8192是數組的大小。你能顯示代碼嗎? – 2010-07-01 15:20:09