[llvm-commits] [llvm] r91087 - /llvm/trunk/include/llvm/Support/CommandLine.h
Anders Carlsson
andersca at mac.com
Thu Dec 10 17:04:42 PST 2009
Author: andersca
Date: Thu Dec 10 19:04:42 2009
New Revision: 91087
URL: http://llvm.org/viewvc/llvm-project?rev=91087&view=rev
Log:
Add qualifiers for calls to member functions in dependent bases.
Modified:
llvm/trunk/include/llvm/Support/CommandLine.h
Modified: llvm/trunk/include/llvm/Support/CommandLine.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/CommandLine.h?rev=91087&r1=91086&r2=91087&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/CommandLine.h (original)
+++ llvm/trunk/include/llvm/Support/CommandLine.h Thu Dec 10 19:04:42 2009
@@ -986,7 +986,7 @@
class list_storage<DataType, bool> : public std::vector<DataType> {
public:
template<class T>
- void addValue(const T &V) { push_back(V); }
+ void addValue(const T &V) { std::vector<DataType>::push_back(V); }
};
@@ -1011,7 +1011,7 @@
typename ParserClass::parser_data_type();
if (Parser.parse(*this, ArgName, Arg, Val))
return true; // Parse Error!
- addValue(Val);
+ list_storage<DataType, Storage>::addValue(Val);
setPosition(pos);
Positions.push_back(pos);
return false;
More information about the llvm-commits
mailing list