Advertisement
snake5

c++ has the best error messages ever

Aug 19th, 2017
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.81 KB | None | 0 0
  1. src/sgs_ouzel.cpp: In static member function 'static sgsOuzelTexture::Handle sgsOuzel::createTexture()':
  2. src/sgs_ouzel.cpp:625:13: error: no match for 'operator=' (operand types are 'std::shared_ptr<ouzel::graphics::Texture>' and 'ouzel::graphics::Texture*')
  3.   h->texture = new Texture;
  4.              ^
  5. In file included from c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/memory:82:0,
  6.                  from ouzel/ouzel/animators/Animator.hpp:6,
  7.                  from ouzel/ouzel/ouzel.hpp:6,
  8.                  from src/sgs_ouzel.hpp:9,
  9.                  from src/sgs_ouzel.cpp:3:
  10. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:271:19: note: candidate: std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(const std::shared_ptr<_Tp>&) [with _Tp = ouzel::graphics::Texture]
  11.        shared_ptr& operator=(const shared_ptr&) noexcept = default;
  12.                    ^
  13. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:271:19: note:   no known conversion for argument 1 from 'ouzel::graphics::Texture*' to 'const std::shared_ptr<ouzel::graphics::Texture>&'
  14. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:275:2: note: candidate: template<class _Tp1> std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(const std::shared_ptr<_Tp1>&) [with _Tp1 = _Tp1; _Tp = ouzel::graphics::Texture]
  15.   operator=(const shared_ptr<_Tp1>& __r) noexcept
  16.   ^
  17. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:275:2: note:   template argument deduction/substitution failed:
  18. src/sgs_ouzel.cpp:625:13: note:   mismatched types 'const std::shared_ptr<_Tp1>' and 'ouzel::graphics::Texture*'
  19.   h->texture = new Texture;
  20.              ^
  21. In file included from c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/memory:82:0,
  22.                  from ouzel/ouzel/animators/Animator.hpp:6,
  23.                  from ouzel/ouzel/ouzel.hpp:6,
  24.                  from src/sgs_ouzel.hpp:9,
  25.                  from src/sgs_ouzel.cpp:3:
  26. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:284:2: note: candidate: template<class _Tp1> std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(std::auto_ptr<_Up>&&) [with _Tp1 = _Tp1; _Tp = ouzel::graphics::Texture]
  27.   operator=(std::auto_ptr<_Tp1>&& __r)
  28.   ^
  29. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:284:2: note:   template argument deduction/substitution failed:
  30. src/sgs_ouzel.cpp:625:13: note:   mismatched types 'std::auto_ptr<_Up>' and 'ouzel::graphics::Texture*'
  31.   h->texture = new Texture;
  32.              ^
  33. In file included from c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/memory:82:0,
  34.                  from ouzel/ouzel/animators/Animator.hpp:6,
  35.                  from ouzel/ouzel/ouzel.hpp:6,
  36.                  from src/sgs_ouzel.hpp:9,
  37.                  from src/sgs_ouzel.cpp:3:
  38. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:292:7: note: candidate: std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Tp>&&) [with _Tp = ouzel::graphics::Texture]
  39.        operator=(shared_ptr&& __r) noexcept
  40.        ^
  41. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:292:7: note:   no known conversion for argument 1 from 'ouzel::graphics::Texture*' to 'std::shared_ptr<ouzel::graphics::Texture>&&'
  42. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:300:2: note: candidate: template<class _Tp1> std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(std::shared_ptr<_Tp1>&&) [with _Tp1 = _Tp1; _Tp = ouzel::graphics::Texture]
  43.   operator=(shared_ptr<_Tp1>&& __r) noexcept
  44.   ^
  45. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:300:2: note:   template argument deduction/substitution failed:
  46. src/sgs_ouzel.cpp:625:13: note:   mismatched types 'std::shared_ptr<_Tp1>' and 'ouzel::graphics::Texture*'
  47.   h->texture = new Texture;
  48.              ^
  49. In file included from c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/memory:82:0,
  50.                  from ouzel/ouzel/animators/Animator.hpp:6,
  51.                  from ouzel/ouzel/ouzel.hpp:6,
  52.                  from src/sgs_ouzel.hpp:9,
  53.                  from src/sgs_ouzel.cpp:3:
  54. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:308:2: note: candidate: template<class _Tp1, class _Del> std::shared_ptr<_Tp>& std::shared_ptr<_Tp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Tp1 = _Tp1; _Del = _Del; _Tp = ouzel::graphics::Texture]
  55.   operator=(std::unique_ptr<_Tp1, _Del>&& __r)
  56.   ^
  57. c:/tdm-gcc-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/shared_ptr.h:308:2: note:   template argument deduction/substitution failed:
  58. src/sgs_ouzel.cpp:625:13: note:   mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'ouzel::graphics::Texture*'
  59.   h->texture = new Texture;
  60.              ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement