1
初始化的boost :: edge_weight_t鍵入下面的代碼,當它被編譯與VS C++此警告會導致一個exec錯誤產生此警告。如何在VS C++
boost::edge_weight_t EdgeWeightPropType;
的警告是:
warning C4700 uninitialized local variable EdgeWeightPropType
注:edge_weight_t定義如下:
enum edge_weight_t{ edge_weight };
template <> struct property_kind<edge_weight_t> {
typedef edge_property_tag type;
};
我怎樣才能避免這種警告或初始化這個變量?
嘗試看看這個[頁碼](http://www.boost.org/doc/libs/1_62_0/libs/graph/doc/ using_adjacency_list.html) – BugsFree
但我不知道怎麼初始化這個變量。 –
我想你應該定義像'typedef的財產 EdgeProperty正是;'如升壓文檔。 –
BugsFree