SHARE
TWEET

Untitled

a guest Jun 16th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PS G:\Users\onebl\Desktop\prog\cpp\mfvimain> g++ .\mfvimain.cpp
  2. In file included from .\mfvimain.cpp:4:0:
  3. .\map_filt.h: In instantiation of 'map_filter_view<T, T2, Func>::map_filter_view(std::map<T, T2>&) [with T = int; T2 = int; Func = maxpred]':
  4. .\mfvimain.cpp:45:46:   required from here
  5. .\map_filt.h:14:3: error: uninitialized reference member in 'class std::map<int, int>&' [-fpermissive]
  6.    map_filter_view(std::map<T, T2>& myMap)
  7.    ^~~~~~~~~~~~~~~
  8. .\map_filt.h:11:20: note: 'std::map<int, int>& map_filter_view<int, int, maxpred>::myMap' should be initialized
  9.    std::map<T, T2>& myMap;
  10.                     ^~~~~
  11. .\map_filt.h: In instantiation of 'map_filter_view<T, T2, Func>::map_filter_view(std::map<T, T2>&) [with T = std::__cxx11::basic_string<char>; T2 = std::__cxx11::basic_string<char>; Func = lang_pred]':
  12. .\mfvimain.cpp:53:76:   required from here
  13. .\map_filt.h:14:3: error: uninitialized reference member in 'class std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&' [-fpermissive]
  14.    map_filter_view(std::map<T, T2>& myMap)
  15.    ^~~~~~~~~~~~~~~
  16. .\map_filt.h:11:20: note: 'std::map<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >& map_filter_view<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>, lang_pred>::myMap' should be initialized
  17.    std::map<T, T2>& myMap;
  18.                     ^~~~~
  19. .\map_filt.h: In instantiation of 'int map_filter_view<T, T2, Func>::size() const [with T = int; T2 = int; Func = maxpred]':
  20. .\mfvimain.cpp:60:22:   required from here
  21. .\map_filt.h:35:5: error: cannot bind non-const lvalue reference of type 'std::pair<int, int>&' to an rvalue of type 'std::pair<int, int>'
  22.      for (std::pair<T, T2>& item : myMap)
  23.      ^~~
  24. In file included from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_algobase.h:64:0,
  25.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/char_traits.h:39,
  26.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ios:40,
  27.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ostream:38,
  28.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/iostream:39,
  29.                  from .\mfvimain.cpp:1:
  30. G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_pair.h:280:19: note:   after user-defined conversion: constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = const int; _U2 = int; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = 1; _T1 = int; _T2 = int]
  31.          constexpr pair(const pair<_U1, _U2>& __p)
  32.                    ^~~~
  33. In file included from .\mfvimain.cpp:4:0:
  34. .\map_filt.h: In instantiation of 'int map_filter_view<T, T2, Func>::count(T) const [with T = std::__cxx11::basic_string<char>; T2 = std::__cxx11::basic_string<char>; Func = lang_pred]':
  35. .\mfvimain.cpp:60:52:   required from here
  36. .\map_filt.h:22:5: error: cannot bind non-const lvalue reference of type 'std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&' to an rvalue of type 'std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >'
  37.      for (std::pair<T, T2>& item : myMap)
  38.      ^~~
  39. In file included from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_algobase.h:64:0,
  40.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/char_traits.h:39,
  41.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ios:40,
  42.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ostream:38,
  43.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/iostream:39,
  44.                  from .\mfvimain.cpp:1:
  45. G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_pair.h:280:19: note:   after user-defined conversion: constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = const std::__cxx11::basic_string<char>; _U2 = std::__cxx11::basic_string<char>; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = 1; _T1 = std::__cxx11::basic_string<char>; _T2 = std::__cxx11::basic_string<char>]
  46.          constexpr pair(const pair<_U1, _U2>& __p)
  47.                    ^~~~
  48. In file included from .\mfvimain.cpp:4:0:
  49. .\map_filt.h: In instantiation of 'int map_filter_view<T, T2, Func>::count(T) const [with T = int; T2 = int; Func = maxpred]':
  50. .\mfvimain.cpp:60:75:   required from here
  51. .\map_filt.h:22:5: error: cannot bind non-const lvalue reference of type 'std::pair<int, int>&' to an rvalue of type 'std::pair<int, int>'
  52.      for (std::pair<T, T2>& item : myMap)
  53.      ^~~
  54. In file included from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_algobase.h:64:0,
  55.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/char_traits.h:39,
  56.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ios:40,
  57.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ostream:38,
  58.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/iostream:39,
  59.                  from .\mfvimain.cpp:1:
  60. G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_pair.h:280:19: note:   after user-defined conversion: constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = const int; _U2 = int; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = 1; _T1 = int; _T2 = int]
  61.          constexpr pair(const pair<_U1, _U2>& __p)
  62.                    ^~~~
  63. In file included from .\mfvimain.cpp:4:0:
  64. .\map_filt.h: In instantiation of 'int map_filter_view<T, T2, Func>::size() const [with T = std::__cxx11::basic_string<char>; T2 = std::__cxx11::basic_string<char>; Func = lang_pred]':
  65. .\mfvimain.cpp:63:29:   required from here
  66. .\map_filt.h:35:5: error: cannot bind non-const lvalue reference of type 'std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >&' to an rvalue of type 'std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >'
  67.      for (std::pair<T, T2>& item : myMap)
  68.      ^~~
  69. In file included from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_algobase.h:64:0,
  70.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/char_traits.h:39,
  71.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ios:40,
  72.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/ostream:38,
  73.                  from G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/iostream:39,
  74.                  from .\mfvimain.cpp:1:
  75. G:/Program Files/Haskell Platform/8.4.2/mingw/include/c++/7.2.0/bits/stl_pair.h:280:19: note:   after user-defined conversion: constexpr std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = const std::__cxx11::basic_string<char>; _U2 = std::__cxx11::basic_string<char>; typename std::enable_if<(std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ConstructiblePair<_U1, _U2>() && std::_PCC<((! std::is_same<_T1, _U1>::value) || (! std::is_same<_T2, _U2>::value)), _T1, _T2>::_ImplicitlyConvertiblePair<_U1, _U2>()), bool>::type <anonymous> = 1; _T1 = std::__cxx11::basic_string<char>; _T2 = std::__cxx11::basic_string<char>]
  76.          constexpr pair(const pair<_U1, _U2>& __p)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top