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:
William S Fulton 2019-02-13 00:04:26 +00:00
commit e26f6bb4e2
18 changed files with 182 additions and 17 deletions

View file

@ -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);
}