Л🐸
Size: a a a
Л🐸
p
C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp: In member function 'void ttt::Application::preInit(const string&, const ttt::WindowParams&)':
C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp:76:98: error: no matching function for call to 'std::unique_ptr<ttt::SDLWindow>::unique_ptr(ttt::SDLWindow*, ttt::SDLWindow*)'
_window = std::unique_ptr<SDLWindow>(new SDLWindow(name, params), new SDLWindow(name, params)));
^
In file included from C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/memory:80,
from C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.hpp:12,
from C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp:9:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:265:2: note: candidate: 'template<class _Up, class> std::unique_ptr<_Tp, _Dp>::unique_ptr(std::auto_ptr<_Up>&&)'
unique_ptr(auto_ptr<_Up>&& __u) noexcept;
^~~~~~~~~~
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:265:2: note: template argument deduction/substitution failed:
C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp:76:98: note: mismatched types 'std::auto_ptr<_Up>' and 'ttt::SDLWindow*'
_window = std::unique_ptr<SDLWindow>(new SDLWindow(name, params), new SDLWindow(name, params)));
^
In file included from C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/memory:80,
from C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.hpp:12,
from C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp:9:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:255:2: note: candidate: 'template<class _Up, class _Ep, class> std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Up, _Ep>&&)'
unique_ptr(unique_ptr<_Up, _Ep>&& __u) noexcept
^~~~~~~~~~
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:255:2: note: template argument deduction/substitution failed:
C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp:76:98: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'ttt::SDLWindow*'
_window = std::unique_ptr<SDLWindow>(new SDLWindow(name, params), new SDLWindow(name, params)));
^
In file included from C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/memory:80,
from C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.hpp:12,
from C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp:9:
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:241:7: note: candidate: 'std::unique_ptr<_Tp, _Dp>::unique_ptr(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = ttt::SDLWindow; _Dp = std::default_delete<ttt::SDLWindow>]'
unique_ptr(unique_ptr&& __u) noexcept
^~~~~~~~~~
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:241:7: note: candidate expects 1 argument, 2 provided
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:236:12: note: candidate: 'template<class _Up, class> constexpr std::unique_ptr<_Tp, _Dp>::unique_ptr(std::nullptr_t)'
constexpr unique_ptr(nullptr_t) noexcept : unique_ptr() { }
^~~~~~~~~~
C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/bits/unique_ptr.h:236:12: note: template argument deduction/substitution failed:
C:\Users\xxx\Documents\yyy\src\ttt\Core\Application.cpp:76:98: note: candidate expects 1 argument, 2 provided
МВ
МВ
МВ
E
p
Л🐸
p
auto btn = spMake<ScaledButton>();
btn->setCaption("BUTTON");
btn->setPosition({300.0f, 300.0f});
app.rootLayer()->addChild(btn);
p
МВ
Л🐸
Л🐸
p
YC
YC
YC
SR
SR