Q
qazmlp
// Test.C
Line-300: namespace
Line-301: {
Line-302: std::vector<std::string> vecaNS ;
Line-303: }
The 'SUN Forte 7 C++ Compiler' reports the following warning for the
above code:
"/advantage/hlri_tools/sol/SUNWspro/prod/include/CC/Cstd/./vector",
line 318: Warning: should not initialize a non-const reference with a
temporary.
"Test.C", line 302: Where: While instantiating
"std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char>>, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char>>>>::~vector()".
"Test.C", line 302: Where: Instantiated from non-template code.
Kindly help to fix this warning.
Line-300: namespace
Line-301: {
Line-302: std::vector<std::string> vecaNS ;
Line-303: }
The 'SUN Forte 7 C++ Compiler' reports the following warning for the
above code:
"/advantage/hlri_tools/sol/SUNWspro/prod/include/CC/Cstd/./vector",
line 318: Warning: should not initialize a non-const reference with a
temporary.
"Test.C", line 302: Where: While instantiating
"std::vector<std::basic_string<char, std::char_traits<char>,
std::allocator<char>>, std::allocator<std::basic_string<char,
std::char_traits<char>, std::allocator<char>>>>::~vector()".
"Test.C", line 302: Where: Instantiated from non-template code.
Kindly help to fix this warning.