// (C) Porkolab 2003 // // A.6.41. // Problems, issues in STL #include <map> int main() { std::map<float> fm1; std::map<float, std::less<float> > fm2; return fm1 == fm2; } // pr1.cpp: In function `int main()': // pr1.cpp:6: wrong number of template arguments (1, should be 4) // /usr/include/g++/bits/stl_map.h:80: provided for `template<class _Key, class // _Tp, class _Compare, class _Alloc> class std::map' // pr1.cpp:6: warning: ISO C++ forbids declaration of `fm1' with no type // pr1.cpp:9: no match for `int& == std::map<float, std::less<float>, // std::less<float>, std::allocator<std::pair<const float, std::less<float> > > >&' operator