ENH: add more junk for the dec cxx compiler to force it to instantiate stuff

This commit is contained in:
Bill Hoffman 2002-03-07 22:07:57 -05:00
parent 61e87c3a6d
commit 42a34e4722
3 changed files with 15 additions and 0 deletions

View File

@ -471,10 +471,15 @@ int main()
cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, "
"CACHE_TEST_VAR_INTERNAL is not defined.");
#else
std::vector<std::string> v;
std::vector<std::string> v2;
v = v2;
std::string cachetest = CACHE_TEST_VAR_INTERNAL;
std::string copy = cachetest;
cachetest.find("bar");
cachetest.rfind("bar");
copy.replace(0,0,0,'a');
copy.append(cachetest);
copy = cachetest.substr(0, cachetest.size());
if(cachetest != "bar")
{

View File

@ -471,10 +471,15 @@ int main()
cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, "
"CACHE_TEST_VAR_INTERNAL is not defined.");
#else
std::vector<std::string> v;
std::vector<std::string> v2;
v = v2;
std::string cachetest = CACHE_TEST_VAR_INTERNAL;
std::string copy = cachetest;
cachetest.find("bar");
cachetest.rfind("bar");
copy.replace(0,0,0,'a');
copy.append(cachetest);
copy = cachetest.substr(0, cachetest.size());
if(cachetest != "bar")
{

View File

@ -471,10 +471,15 @@ int main()
cmFailed("the LOAD_CACHE or CONFIGURE_FILE command is broken, "
"CACHE_TEST_VAR_INTERNAL is not defined.");
#else
std::vector<std::string> v;
std::vector<std::string> v2;
v = v2;
std::string cachetest = CACHE_TEST_VAR_INTERNAL;
std::string copy = cachetest;
cachetest.find("bar");
cachetest.rfind("bar");
copy.replace(0,0,0,'a');
copy.append(cachetest);
copy = cachetest.substr(0, cachetest.size());
if(cachetest != "bar")
{