c++ - What is the Meaning of a "note" from G++ which is NOT Attached to an Error or Warning -
while compiling code, received following strange message g++ 4.3.4:
...include/boost/property_tree/stream_translator.hpp: in member function 'typename boost::enable_if<boost::property_tree::detail::is_translator<translator>, type>::type boost::property_tree::basic_ptree<key, data, keycompare>::get_value(translator) const [with type = objecttype, translator = boost::property_tree::stream_translator<char, std::char_traits<char>, std::allocator<char>, objecttype>, key = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, data = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, keycompare = std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]': ...include/boost/property_tree/stream_translator.hpp:189: note: 'e' declared here there's no warning or error near by, , i've never seen such thing g++ before. have idea what's going on?
gcc, in case, attempting provide context further error occurs. you've shown snippet , not full error, what's happening.
this happens during template expansion. gcc attempting provide context under expansion occurred, have more info fix issue. these "notes" can useful when you've nested and/or complex templates.
the easiest way fix these errors work top-down, correcting first error see , move next.
Comments
Post a Comment