|
The only difference specific to VAX that might
affect users of the STL (that we know about)
are:
1. string pooling does not occur on VAX/VMS, i.e.:
/*
This program prints "they are equal" on Digital
Unix and Alpha VMS but does not print anything on
VAX VMS.
*/
extern "C" int printf(const char*,...);
int main() {
if ("Smith" == "Smith")
printf("they are equal\n");
return 0;
}
2. You can get a "virtual memory exceeded" compiler error
on VAX when instantiating complicated STL templates, i.e.:
#include <map>
#include <string>
// A map<int,int> works ok
// A vector<string> is ok
map<string, string> mymap; // this causes VAX VMS compiler problems
I think we're hoping to fix this one in the next release (V5.6).
|