M
Mehturt
Hi.. I have came across this problem, I don't know why it does not
work..
Thanks for your explanations..
m
#include <map>
#include <algorithm>
struct fo
{
void operator() (const std:
air<int, int>& pr)
{ }
void operator() (const std:
air<int, void*>& pr)
{ }
};
int main()
{
std::map<int, int> m;
std::map<int, void*> m2;
std::for_each(m.begin(), m.end(), fo());
std::for_each(m2.begin(), m2.end(), fo());
return 0;
}
work..
Thanks for your explanations..
m
#include <map>
#include <algorithm>
struct fo
{
void operator() (const std:
{ }
void operator() (const std:
{ }
};
int main()
{
std::map<int, int> m;
std::map<int, void*> m2;
std::for_each(m.begin(), m.end(), fo());
std::for_each(m2.begin(), m2.end(), fo());
return 0;
}