Guest User

Untitled

a guest
Apr 24th, 2015
268
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:218:2: note:
  2.       candidate template ignored: could not match
  3.       'shared_ptr<type-parameter-0-0>' against 'tgui::Gui'
  4.         shared_ptr(const shared_ptr<_Tp1>& __r) noexcept
  5.         ^
  6. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:236:2: note:
  7.       candidate template ignored: could not match
  8.       'shared_ptr<type-parameter-0-0>' against 'tgui::Gui'
  9.         shared_ptr(shared_ptr<_Tp1>&& __r) noexcept
  10.         ^
  11. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:248:11: note:
  12.       candidate template ignored: could not match 'weak_ptr<type-parameter-0-0>'
  13.       against 'tgui::Gui'
  14.         explicit shared_ptr(const weak_ptr<_Tp1>& __r)
  15.                  ^
  16. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:253:2: note:
  17.       candidate template ignored: could not match 'auto_ptr<type-parameter-0-0>'
  18.       against 'tgui::Gui'
  19.         shared_ptr(std::auto_ptr<_Tp1>&& __r);
  20.         ^
  21. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:257:2: note:
  22.       candidate template ignored: could not match
  23.       'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'tgui::Gui'
  24.         shared_ptr(std::unique_ptr<_Tp1, _Del>&& __r)
  25.         ^
  26. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:129:2: note:
  27.       candidate constructor template not viable: requires 2 arguments, but 1 was
  28.       provided
  29.         shared_ptr(_Tp1* __p, _Deleter __d)
  30.         ^
  31. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:146:2: note:
  32.       candidate constructor template not viable: requires 2 arguments, but 1 was
  33.       provided
  34.         shared_ptr(nullptr_t __p, _Deleter __d)
  35.         ^
  36. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:165:2: note:
  37.       candidate constructor template not viable: requires 3 arguments, but 1 was
  38.       provided
  39.         shared_ptr(_Tp1* __p, _Deleter __d, _Alloc __a)
  40.         ^
  41. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:184:2: note:
  42.       candidate constructor template not viable: requires 3 arguments, but 1 was
  43.       provided
  44.         shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
  45.         ^
  46. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:206:2: note:
  47.       candidate constructor template not viable: requires 2 arguments, but 1 was
  48.       provided
  49.         shared_ptr(const shared_ptr<_Tp1>& __r, _Tp* __p) noexcept
  50.         ^
  51. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:314:2: note:
  52.       candidate constructor template not viable: requires at least 2 arguments,
  53.       but 1 was provided
  54.         shared_ptr(_Sp_make_shared_tag __tag, const _Alloc& __a,
  55.         ^
  56. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:100:17: note:
  57.       candidate constructor not viable: requires 0 arguments, but 1 was provided
  58.       constexpr shared_ptr() noexcept
  59.                 ^
  60. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:324:7: note:
  61.       candidate constructor not viable: requires 2 arguments, but 1 was provided
  62.       shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
  63.       ^
  64. src/main.cpp:16:19: error: no matching constructor for initialization of
  65.       'tgui::Label::Ptr' (aka 'shared_ptr<tgui::Label>')
  66.         tgui::Label::Ptr labelPassword(gui);
  67.                          ^             ~~~
  68. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:103:7: note:
  69.       candidate constructor not viable: no known conversion from 'tgui::Gui' to
  70.       'const std::shared_ptr<tgui::Label>' for 1st argument
  71.       shared_ptr(const shared_ptr&) noexcept = default;
  72.       ^
  73. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:226:7: note:
  74.       candidate constructor not viable: no known conversion from 'tgui::Gui' to
  75.       'std::shared_ptr<tgui::Label>' for 1st argument
  76.       shared_ptr(shared_ptr&& __r) noexcept
  77.       ^
  78. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:265:17: note:
  79.       candidate constructor not viable: no known conversion from 'tgui::Gui' to
  80.       'nullptr_t' for 1st argument
  81.       constexpr shared_ptr(nullptr_t __p) noexcept
  82.                 ^
  83. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:112:11: note:
  84.       candidate template ignored: could not match '_Tp1 *' against 'tgui::Gui'
  85.         explicit shared_ptr(_Tp1* __p)
  86.                  ^
  87. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:218:2: note:
  88.       candidate template ignored: could not match
  89.       'shared_ptr<type-parameter-0-0>' against 'tgui::Gui'
  90.         shared_ptr(const shared_ptr<_Tp1>& __r) noexcept
  91.         ^
  92. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:236:2: note:
  93.       candidate template ignored: could not match
  94.       'shared_ptr<type-parameter-0-0>' against 'tgui::Gui'
  95.         shared_ptr(shared_ptr<_Tp1>&& __r) noexcept
  96.         ^
  97. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:248:11: note:
  98.       candidate template ignored: could not match 'weak_ptr<type-parameter-0-0>'
  99.       against 'tgui::Gui'
  100.         explicit shared_ptr(const weak_ptr<_Tp1>& __r)
  101.                  ^
  102. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:253:2: note:
  103.       candidate template ignored: could not match 'auto_ptr<type-parameter-0-0>'
  104.       against 'tgui::Gui'
  105.         shared_ptr(std::auto_ptr<_Tp1>&& __r);
  106.         ^
  107. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:257:2: note:
  108.       candidate template ignored: could not match
  109.       'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'tgui::Gui'
  110.         shared_ptr(std::unique_ptr<_Tp1, _Del>&& __r)
  111.         ^
  112. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:129:2: note:
  113.       candidate constructor template not viable: requires 2 arguments, but 1 was
  114.       provided
  115.         shared_ptr(_Tp1* __p, _Deleter __d)
  116.         ^
  117. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:146:2: note:
  118.       candidate constructor template not viable: requires 2 arguments, but 1 was
  119.       provided
  120.         shared_ptr(nullptr_t __p, _Deleter __d)
  121.         ^
  122. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:165:2: note:
  123.       candidate constructor template not viable: requires 3 arguments, but 1 was
  124.       provided
  125.         shared_ptr(_Tp1* __p, _Deleter __d, _Alloc __a)
  126.         ^
  127. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:184:2: note:
  128.       candidate constructor template not viable: requires 3 arguments, but 1 was
  129.       provided
  130.         shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
  131.         ^
  132. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:206:2: note:
  133.       candidate constructor template not viable: requires 2 arguments, but 1 was
  134.       provided
  135.         shared_ptr(const shared_ptr<_Tp1>& __r, _Tp* __p) noexcept
  136.         ^
  137. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:314:2: note:
  138.       candidate constructor template not viable: requires at least 2 arguments,
  139.       but 1 was provided
  140.         shared_ptr(_Sp_make_shared_tag __tag, const _Alloc& __a,
  141.         ^
  142. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:100:17: note:
  143.       candidate constructor not viable: requires 0 arguments, but 1 was provided
  144.       constexpr shared_ptr() noexcept
  145.                 ^
  146. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:324:7: note:
  147.       candidate constructor not viable: requires 2 arguments, but 1 was provided
  148.       shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
  149.       ^
  150. src/main.cpp:21:21: error: no matching constructor for initialization of
  151.       'tgui::EditBox::Ptr' (aka 'shared_ptr<tgui::EditBox>')
  152.         tgui::EditBox::Ptr editBoxUsername(gui, "Username");
  153.                            ^               ~~~~~~~~~~~~~~~
  154. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:146:2: note:
  155.       candidate constructor [with _Deleter = const char *] not viable: no known
  156.       conversion from 'tgui::Gui' to 'nullptr_t' for 1st argument
  157.         shared_ptr(nullptr_t __p, _Deleter __d)
  158.         ^
  159. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:314:2: note:
  160.       candidate constructor [with _Alloc = char [9], _Args = <>] not viable: no
  161.       known conversion from 'tgui::Gui' to 'std::_Sp_make_shared_tag' for 1st
  162.       argument
  163.         shared_ptr(_Sp_make_shared_tag __tag, const _Alloc& __a,
  164.         ^
  165. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:324:7: note:
  166.       candidate constructor not viable: no known conversion from 'tgui::Gui' to
  167.       'const weak_ptr<tgui::EditBox>' for 1st argument
  168.       shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
  169.       ^
  170. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:129:2: note:
  171.       candidate template ignored: could not match '_Tp1 *' against 'tgui::Gui'
  172.         shared_ptr(_Tp1* __p, _Deleter __d)
  173.         ^
  174. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:206:2: note:
  175.       candidate template ignored: could not match
  176.       'shared_ptr<type-parameter-0-0>' against 'tgui::Gui'
  177.         shared_ptr(const shared_ptr<_Tp1>& __r, _Tp* __p) noexcept
  178.         ^
  179. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:112:11: note:
  180.       candidate constructor template not viable: requires single argument '__p',
  181.       but 2 arguments were provided
  182.         explicit shared_ptr(_Tp1* __p)
  183.                  ^
  184. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:218:2: note:
  185.       candidate constructor template not viable: requires single argument '__r',
  186.       but 2 arguments were provided
  187.         shared_ptr(const shared_ptr<_Tp1>& __r) noexcept
  188.         ^
  189. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:184:2: note:
  190.       candidate constructor template not viable: requires 3 arguments, but 2
  191.       were provided
  192.         shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
  193.         ^
  194. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:236:2: note:
  195.       candidate constructor template not viable: requires single argument '__r',
  196.       but 2 arguments were provided
  197.         shared_ptr(shared_ptr<_Tp1>&& __r) noexcept
  198.         ^
  199. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:248:11: note:
  200.       candidate constructor template not viable: requires single argument '__r',
  201.       but 2 arguments were provided
  202.         explicit shared_ptr(const weak_ptr<_Tp1>& __r)
  203.                  ^
  204. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:253:2: note:
  205.       candidate constructor template not viable: requires single argument '__r',
  206.       but 2 arguments were provided
  207.         shared_ptr(std::auto_ptr<_Tp1>&& __r);
  208.         ^
  209. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:257:2: note:
  210.       candidate constructor template not viable: requires single argument '__r',
  211.       but 2 arguments were provided
  212.         shared_ptr(std::unique_ptr<_Tp1, _Del>&& __r)
  213.         ^
  214. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:165:2: note:
  215.       candidate constructor template not viable: requires 3 arguments, but 2
  216.       were provided
  217.         shared_ptr(_Tp1* __p, _Deleter __d, _Alloc __a)
  218.         ^
  219. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:100:17: note:
  220.       candidate constructor not viable: requires 0 arguments, but 2 were
  221.       provided
  222.       constexpr shared_ptr() noexcept
  223.                 ^
  224. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:226:7: note:
  225.       candidate constructor not viable: requires single argument '__r', but 2
  226.       arguments were provided
  227.       shared_ptr(shared_ptr&& __r) noexcept
  228.       ^
  229. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:265:17: note:
  230.       candidate constructor not viable: requires single argument '__p', but 2
  231.       arguments were provided
  232.       constexpr shared_ptr(nullptr_t __p) noexcept
  233.                 ^
  234. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:103:7: note:
  235.       candidate constructor not viable: requires 1 argument, but 2 were provided
  236.       shared_ptr(const shared_ptr&) noexcept = default;
  237.       ^
  238. src/main.cpp:27:43: error: no member named 'copy' in 'tgui::Gui'
  239.         tgui::EditBox::Ptr editBoxPassword = gui.copy(editBoxUsername, "...
  240.                                             ~~~ ^
  241. src/main.cpp:32:20: error: no matching constructor for initialization of
  242.      'tgui::Button::Ptr' (aka 'shared_ptr<tgui::Button>')
  243.        tgui::Button::Ptr button(gui);
  244.                          ^      ~~~
  245. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:103:7: note:
  246.      candidate constructor not viable: no known conversion from 'tgui::Gui' to
  247.      'const std::shared_ptr<tgui::Button>' for 1st argument
  248.      shared_ptr(const shared_ptr&) noexcept = default;
  249.      ^
  250. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:226:7: note:
  251.      candidate constructor not viable: no known conversion from 'tgui::Gui' to
  252.      'std::shared_ptr<tgui::Button>' for 1st argument
  253.      shared_ptr(shared_ptr&& __r) noexcept
  254.      ^
  255. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:265:17: note:
  256.      candidate constructor not viable: no known conversion from 'tgui::Gui' to
  257.      'nullptr_t' for 1st argument
  258.      constexpr shared_ptr(nullptr_t __p) noexcept
  259.                ^
  260. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:112:11: note:
  261.      candidate template ignored: could not match '_Tp1 *' against 'tgui::Gui'
  262.        explicit shared_ptr(_Tp1* __p)
  263.                 ^
  264. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:218:2: note:
  265.      candidate template ignored: could not match
  266.      'shared_ptr<type-parameter-0-0>' against 'tgui::Gui'
  267.        shared_ptr(const shared_ptr<_Tp1>& __r) noexcept
  268.        ^
  269. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:236:2: note:
  270.      candidate template ignored: could not match
  271.      'shared_ptr<type-parameter-0-0>' against 'tgui::Gui'
  272.        shared_ptr(shared_ptr<_Tp1>&& __r) noexcept
  273.        ^
  274. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:248:11: note:
  275.      candidate template ignored: could not match 'weak_ptr<type-parameter-0-0>'
  276.      against 'tgui::Gui'
  277.        explicit shared_ptr(const weak_ptr<_Tp1>& __r)
  278.                 ^
  279. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:253:2: note:
  280.      candidate template ignored: could not match 'auto_ptr<type-parameter-0-0>'
  281.      against 'tgui::Gui'
  282.        shared_ptr(std::auto_ptr<_Tp1>&& __r);
  283.        ^
  284. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:257:2: note:
  285.      candidate template ignored: could not match
  286.      'unique_ptr<type-parameter-0-0, type-parameter-0-1>' against 'tgui::Gui'
  287.        shared_ptr(std::unique_ptr<_Tp1, _Del>&& __r)
  288.        ^
  289. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:129:2: note:
  290.      candidate constructor template not viable: requires 2 arguments, but 1 was
  291.      provided
  292.        shared_ptr(_Tp1* __p, _Deleter __d)
  293.        ^
  294. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:146:2: note:
  295.      candidate constructor template not viable: requires 2 arguments, but 1 was
  296.      provided
  297.        shared_ptr(nullptr_t __p, _Deleter __d)
  298.        ^
  299. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:165:2: note:
  300.      candidate constructor template not viable: requires 3 arguments, but 1 was
  301.      provided
  302.        shared_ptr(_Tp1* __p, _Deleter __d, _Alloc __a)
  303.        ^
  304. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:184:2: note:
  305.      candidate constructor template not viable: requires 3 arguments, but 1 was
  306.      provided
  307.        shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
  308.        ^
  309. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:206:2: note:
  310.      candidate constructor template not viable: requires 2 arguments, but 1 was
  311.      provided
  312.        shared_ptr(const shared_ptr<_Tp1>& __r, _Tp* __p) noexcept
  313.        ^
  314. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:314:2: note:
  315.      candidate constructor template not viable: requires at least 2 arguments,
  316.      but 1 was provided
  317.        shared_ptr(_Sp_make_shared_tag __tag, const _Alloc& __a,
  318.        ^
  319. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:100:17: note:
  320.      candidate constructor not viable: requires 0 arguments, but 1 was provided
  321.      constexpr shared_ptr() noexcept
  322.                ^
  323. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:324:7: note:
  324.      candidate constructor not viable: requires 2 arguments, but 1 was provided
  325.      shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
  326.      ^
  327. src/main.cpp:37:37: error: no member named 'LeftMouseClicked' in 'tgui::Button'
  328.        button->bindCallback(tgui::Button::LeftMouseClicked);
  329.                             ~~~~~~~~~~~~~~^
  330. src/main.cpp:68:14: error: no member named 'pollCallback' in 'tgui::Gui'
  331.                while (gui.pollCallback(callback))
  332.                       ~~~ ^
  333. src/main.cpp:74:24: error: no viable conversion from 'shared_ptr<class
  334.      tgui::Widget>' to 'shared_ptr<class tgui::EditBox>'
  335.  ...tgui::EditBox::Ptr editBoxUsername = gui.get("Username");
  336.                        ^                 ~~~~~~~~~~~~~~~~~~~
  337. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:103:7: note:
  338.      candidate constructor not viable: no known conversion from 'Widget::Ptr'
  339.      (aka 'shared_ptr<tgui::Widget>') to 'const std::shared_ptr<tgui::EditBox>
  340.      &' for 1st argument
  341.      shared_ptr(const shared_ptr&) noexcept = default;
  342.      ^
  343. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:226:7: note:
  344.      candidate constructor not viable: no known conversion from 'Widget::Ptr'
  345.      (aka 'shared_ptr<tgui::Widget>') to 'std::shared_ptr<tgui::EditBox> &&'
  346.      for 1st argument
  347.      shared_ptr(shared_ptr&& __r) noexcept
  348.      ^
  349. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:265:17: note:
  350.      candidate constructor not viable: no known conversion from 'Widget::Ptr'
  351.      (aka 'shared_ptr<tgui::Widget>') to 'nullptr_t' for 1st argument
  352.      constexpr shared_ptr(nullptr_t __p) noexcept
  353.                ^
  354. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:217:24: note:
  355.      candidate template ignored: disabled by 'enable_if' [with _Tp1 =
  356.      tgui::Widget]
  357.               std::enable_if<std::is_convertible<_Tp1*, _Tp*>::value>::type>
  358.                              ^
  359. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:235:24: note:
  360.      candidate template ignored: disabled by 'enable_if' [with _Tp1 =
  361.      tgui::Widget]
  362.               std::enable_if<std::is_convertible<_Tp1*, _Tp*>::value>::type>
  363.                              ^
  364. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:253:2: note:
  365.      candidate template ignored: could not match 'auto_ptr' against
  366.      'shared_ptr'
  367.        shared_ptr(std::auto_ptr<_Tp1>&& __r);
  368.        ^
  369. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:257:2: note:
  370.      candidate template ignored: could not match 'unique_ptr' against
  371.      'shared_ptr'
  372.        shared_ptr(std::unique_ptr<_Tp1, _Del>&& __r)
  373.        ^
  374. src/main.cpp:75:24: error: no viable conversion from 'shared_ptr<class
  375.      tgui::Widget>' to 'shared_ptr<class tgui::EditBox>'
  376.  ...tgui::EditBox::Ptr editBoxPassword = gui.get("Password");
  377.                        ^                 ~~~~~~~~~~~~~~~~~~~
  378. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:103:7: note:
  379.      candidate constructor not viable: no known conversion from 'Widget::Ptr'
  380.      (aka 'shared_ptr<tgui::Widget>') to 'const std::shared_ptr<tgui::EditBox>
  381.      &' for 1st argument
  382.      shared_ptr(const shared_ptr&) noexcept = default;
  383.      ^
  384. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:226:7: note:
  385.      candidate constructor not viable: no known conversion from 'Widget::Ptr'
  386.      (aka 'shared_ptr<tgui::Widget>') to 'std::shared_ptr<tgui::EditBox> &&'
  387.      for 1st argument
  388.      shared_ptr(shared_ptr&& __r) noexcept
  389.      ^
  390. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:265:17: note:
  391.      candidate constructor not viable: no known conversion from 'Widget::Ptr'
  392.      (aka 'shared_ptr<tgui::Widget>') to 'nullptr_t' for 1st argument
  393.      constexpr shared_ptr(nullptr_t __p) noexcept
  394.                ^
  395. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:217:24: note:
  396.      candidate template ignored: disabled by 'enable_if' [with _Tp1 =
  397.      tgui::Widget]
  398.               std::enable_if<std::is_convertible<_Tp1*, _Tp*>::value>::type>
  399.                              ^
  400. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:235:24: note:
  401.      candidate template ignored: disabled by 'enable_if' [with _Tp1 =
  402.      tgui::Widget]
  403.               std::enable_if<std::is_convertible<_Tp1*, _Tp*>::value>::type>
  404.                              ^
  405. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:253:2: note:
  406.      candidate template ignored: could not match 'auto_ptr' against
  407.      'shared_ptr'
  408.        shared_ptr(std::auto_ptr<_Tp1>&& __r);
  409.        ^
  410. /usr/bin/../lib/gcc/x86_64-linux-gnu/4.9/../../../../include/c++/4.9/bits/shared_ptr.h:257:2: note:
  411.      candidate template ignored: could not match 'unique_ptr' against
  412.      'shared_ptr'
  413.        shared_ptr(std::unique_ptr<_Tp1, _Del>&& __r)
  414.        ^
  415. 10 errors generated.
RAW Paste Data