- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We are migrating from an older intel compiler (version 11) to version 15 and getting this namespace error.
Trying to find inof on why the transform throwing an error
Thoughts ?
Thanks
--------------------------------------------------------------------------------------------------------------------------
Error:
main.cc(16): error: namespace "std" has no member "transform
std::transform(strToConvert.begin(), strToConvert.end(), strToConvert.begin(), ::toupper);
Code:
#include <stdio.h>
#include <iostream>
#include <cctype>
#include <clocale>
#include <string>
using namespace std;
main() {
string strToConvert;
strToConvert="Hello Alan";
std::transform(strToConvert.begin(), strToConvert.end(), strToConvert.begin(), ::toupper);
}
- Tags:
- CC++
- Development Tools
- Intel® C++ Compiler
- Intel® Parallel Studio XE
- Intel® System Studio
- Optimization
- Parallel Computing
- Vectorization
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to all C++ references (eg: http://tinyurl.com/yd2s6kug), std::transform is located in <algorithm>.
Daniel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I found that i now require the #include <algorithm> header which was was not needed before.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page