Add missing typedefs to std::vector + typedef corrections
Tests for std::vector of pointers added which check std::vector<T*>::const_reference and std::vector<T*>::reference usage which gave compilation errors in Python and Perl which had specialized these vectors incorrectly.
This commit is contained in:
parent
a47c2553f5
commit
e26f6bb4e2
18 changed files with 182 additions and 17 deletions
|
|
@ -15,6 +15,19 @@ using namespace std;
|
|||
int* makeIntPtr(int v) {
|
||||
return new int(v);
|
||||
}
|
||||
std::vector<int *>::value_type makeIntPtr2(int v) {
|
||||
return new int(v);
|
||||
}
|
||||
int getIntValue(int *p) {
|
||||
return *p;
|
||||
}
|
||||
int getIntValue2(std::vector<int *>::const_reference p) {
|
||||
return *p;
|
||||
}
|
||||
int getIntValue3(std::vector<int *>::reference p) {
|
||||
return *p;
|
||||
}
|
||||
|
||||
double* makeDoublePtr(double v) {
|
||||
return new double(v);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue