In file included from main.cpp:17:0:
figure.h: In member function 'virtual double Rect::Perimeter()':
figure.h:44:16: error: 'per' was not declared in this scope
return per;
^~~
figure.h:44:16: note: suggested alternative: 'perim'
return per;
^~~
perim
figure.h: In function 'std::shared_ptr<Figure> CreateFigure(std::istringstream&)':
figure.h:77:37: error: no matching function for call to 'std::shared_ptr<Rect>::shared_ptr(int64_t&, int64_t&)'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:352:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp = Rect]
shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:352:7: note: no known conversion for argument 1 from 'int64_t {aka long int}' to 'const std::weak_ptr<Rect>&'
/usr/include/c++/7/bits/shared_ptr.h:342:2: note: candidate: template<class _Alloc, class ... _Args> std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...)
shared_ptr(_Sp_make_shared_tag __tag, const _Alloc& __a,
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:342:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: cannot convert 'a' (type 'int64_t {aka long int}') to type 'std::_Sp_make_shared_tag'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:294:17: note: candidate: constexpr std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t) [with _Tp = Rect; std::nullptr_t = std::nullptr_t]
constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:294:17: note: candidate expects 1 argument, 2 provided
/usr/include/c++/7/bits/shared_ptr.h:286:2: note: candidate: template<class _Yp, class _Del, std::shared_ptr<Rect>::_Constructible<std::unique_ptr<_Tp, _Dp>, std::__sp_array_delete>* <anonymous> > std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&)
shared_ptr(unique_ptr<_Yp, _Del>&& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:286:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'int64_t {aka long int}'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:277:2: note: candidate: template<class _Yp, class _Del, class> std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&)
shared_ptr(unique_ptr<_Yp, _Del>&& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:277:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'int64_t {aka long int}'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:270:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Up>&&)
shared_ptr(auto_ptr<_Yp>&& __r);
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:270:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types 'std::auto_ptr<_Up>' and 'int64_t {aka long int}'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:265:11: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Yp>&)
explicit shared_ptr(const weak_ptr<_Yp>& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:265:11: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types 'const std::weak_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:253:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Yp>&&)
shared_ptr(shared_ptr<_Yp>&& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:253:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types 'std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:244:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Tp>&&) [with _Tp = Rect]
shared_ptr(shared_ptr&& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:244:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/7/bits/shared_ptr.h:236:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&)
shared_ptr(const shared_ptr<_Yp>& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:236:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types 'const std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:224:2: note: candidate: template<class _Yp> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&, std::shared_ptr<_Tp>::element_type*)
shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:224:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types 'const std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:202:2: note: candidate: template<class _Deleter, class _Alloc> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter, _Alloc)
shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:202:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: candidate expects 3 arguments, 2 provided
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:183:2: note: candidate: template<class _Yp, class _Deleter, class _Alloc, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter, _Alloc)
shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:183:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:163:2: note: candidate: template<class _Deleter> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter)
shared_ptr(nullptr_t __p, _Deleter __d)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:163:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: cannot convert 'a' (type 'int64_t {aka long int}') to type 'std::nullptr_t'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:146:2: note: candidate: template<class _Yp, class _Deleter, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter)
shared_ptr(_Yp* __p, _Deleter __d)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:146:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:129:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*)
shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:129:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:77:37: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Rect>(a, b);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:119:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Tp>&) [with _Tp = Rect]
shared_ptr(const shared_ptr&) noexcept = default;
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:119:7: note: candidate expects 1 argument, 2 provided
/usr/include/c++/7/bits/shared_ptr.h:117:17: note: candidate: constexpr std::shared_ptr<_Tp>::shared_ptr() [with _Tp = Rect]
constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:117:17: note: candidate expects 0 arguments, 2 provided
In file included from main.cpp:17:0:
figure.h:80:44: error: no matching function for call to 'std::shared_ptr<Triangle>::shared_ptr(int64_t&, int64_t&, int64_t&)'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:352:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp = Triangle]
shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:352:7: note: candidate expects 2 arguments, 3 provided
/usr/include/c++/7/bits/shared_ptr.h:342:2: note: candidate: template<class _Alloc, class ... _Args> std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...)
shared_ptr(_Sp_make_shared_tag __tag, const _Alloc& __a,
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:342:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: cannot convert 'a' (type 'int64_t {aka long int}') to type 'std::_Sp_make_shared_tag'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:294:17: note: candidate: constexpr std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t) [with _Tp = Triangle; std::nullptr_t = std::nullptr_t]
constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:294:17: note: candidate expects 1 argument, 3 provided
/usr/include/c++/7/bits/shared_ptr.h:286:2: note: candidate: template<class _Yp, class _Del, std::shared_ptr<Triangle>::_Constructible<std::unique_ptr<_Tp, _Dp>, std::__sp_array_delete>* <anonymous> > std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&)
shared_ptr(unique_ptr<_Yp, _Del>&& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:286:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'int64_t {aka long int}'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:277:2: note: candidate: template<class _Yp, class _Del, class> std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&)
shared_ptr(unique_ptr<_Yp, _Del>&& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:277:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'int64_t {aka long int}'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:270:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Up>&&)
shared_ptr(auto_ptr<_Yp>&& __r);
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:270:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types 'std::auto_ptr<_Up>' and 'int64_t {aka long int}'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:265:11: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Yp>&)
explicit shared_ptr(const weak_ptr<_Yp>& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:265:11: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types 'const std::weak_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:253:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Yp>&&)
shared_ptr(shared_ptr<_Yp>&& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:253:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types 'std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:244:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Tp>&&) [with _Tp = Triangle]
shared_ptr(shared_ptr&& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:244:7: note: candidate expects 1 argument, 3 provided
/usr/include/c++/7/bits/shared_ptr.h:236:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&)
shared_ptr(const shared_ptr<_Yp>& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:236:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types 'const std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:224:2: note: candidate: template<class _Yp> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&, std::shared_ptr<_Tp>::element_type*)
shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:224:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types 'const std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:202:2: note: candidate: template<class _Deleter, class _Alloc> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter, _Alloc)
shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:202:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: cannot convert 'a' (type 'int64_t {aka long int}') to type 'std::nullptr_t'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:183:2: note: candidate: template<class _Yp, class _Deleter, class _Alloc, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter, _Alloc)
shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:183:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:163:2: note: candidate: template<class _Deleter> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter)
shared_ptr(nullptr_t __p, _Deleter __d)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:163:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: candidate expects 2 arguments, 3 provided
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:146:2: note: candidate: template<class _Yp, class _Deleter, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter)
shared_ptr(_Yp* __p, _Deleter __d)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:146:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:129:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*)
shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:129:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:80:44: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Triangle>(a, b, c);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:119:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Tp>&) [with _Tp = Triangle]
shared_ptr(const shared_ptr&) noexcept = default;
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:119:7: note: candidate expects 1 argument, 3 provided
/usr/include/c++/7/bits/shared_ptr.h:117:17: note: candidate: constexpr std::shared_ptr<_Tp>::shared_ptr() [with _Tp = Triangle]
constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:117:17: note: candidate expects 0 arguments, 3 provided
In file included from main.cpp:17:0:
figure.h:83:36: error: no matching function for call to 'std::shared_ptr<Circle>::shared_ptr(int64_t&)'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:352:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Tp>&, std::nothrow_t) [with _Tp = Circle]
shared_ptr(const weak_ptr<_Tp>& __r, std::nothrow_t)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:352:7: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/7/bits/shared_ptr.h:342:2: note: candidate: template<class _Alloc, class ... _Args> std::shared_ptr<_Tp>::shared_ptr(std::_Sp_make_shared_tag, const _Alloc&, _Args&& ...)
shared_ptr(_Sp_make_shared_tag __tag, const _Alloc& __a,
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:342:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: candidate expects at least 2 arguments, 1 provided
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:294:17: note: candidate: constexpr std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t) [with _Tp = Circle; std::nullptr_t = std::nullptr_t]
constexpr shared_ptr(nullptr_t) noexcept : shared_ptr() { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:294:17: note: no known conversion for argument 1 from 'int64_t {aka long int}' to 'std::nullptr_t'
/usr/include/c++/7/bits/shared_ptr.h:286:2: note: candidate: template<class _Yp, class _Del, std::shared_ptr<Circle>::_Constructible<std::unique_ptr<_Tp, _Dp>, std::__sp_array_delete>* <anonymous> > std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&)
shared_ptr(unique_ptr<_Yp, _Del>&& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:286:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'int64_t {aka long int}'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:277:2: note: candidate: template<class _Yp, class _Del, class> std::shared_ptr<_Tp>::shared_ptr(std::unique_ptr<_Up, _Ep>&&)
shared_ptr(unique_ptr<_Yp, _Del>&& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:277:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types 'std::unique_ptr<_Tp, _Dp>' and 'int64_t {aka long int}'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:270:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::auto_ptr<_Up>&&)
shared_ptr(auto_ptr<_Yp>&& __r);
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:270:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types 'std::auto_ptr<_Up>' and 'int64_t {aka long int}'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:265:11: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::weak_ptr<_Yp>&)
explicit shared_ptr(const weak_ptr<_Yp>& __r)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:265:11: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types 'const std::weak_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:253:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Yp>&&)
shared_ptr(shared_ptr<_Yp>&& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:253:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types 'std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:244:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(std::shared_ptr<_Tp>&&) [with _Tp = Circle]
shared_ptr(shared_ptr&& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:244:7: note: no known conversion for argument 1 from 'int64_t {aka long int}' to 'std::shared_ptr<Circle>&&'
/usr/include/c++/7/bits/shared_ptr.h:236:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&)
shared_ptr(const shared_ptr<_Yp>& __r) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:236:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types 'const std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:224:2: note: candidate: template<class _Yp> std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Yp>&, std::shared_ptr<_Tp>::element_type*)
shared_ptr(const shared_ptr<_Yp>& __r, element_type* __p) noexcept
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:224:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types 'const std::shared_ptr<_Tp>' and 'int64_t {aka long int}'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:202:2: note: candidate: template<class _Deleter, class _Alloc> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter, _Alloc)
shared_ptr(nullptr_t __p, _Deleter __d, _Alloc __a)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:202:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: candidate expects 3 arguments, 1 provided
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:183:2: note: candidate: template<class _Yp, class _Deleter, class _Alloc, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter, _Alloc)
shared_ptr(_Yp* __p, _Deleter __d, _Alloc __a)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:183:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:163:2: note: candidate: template<class _Deleter> std::shared_ptr<_Tp>::shared_ptr(std::nullptr_t, _Deleter)
shared_ptr(nullptr_t __p, _Deleter __d)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:163:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: candidate expects 2 arguments, 1 provided
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:146:2: note: candidate: template<class _Yp, class _Deleter, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*, _Deleter)
shared_ptr(_Yp* __p, _Deleter __d)
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:146:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:129:2: note: candidate: template<class _Yp, class> std::shared_ptr<_Tp>::shared_ptr(_Yp*)
shared_ptr(_Yp* __p) : __shared_ptr<_Tp>(__p) { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:129:2: note: template argument deduction/substitution failed:
In file included from main.cpp:17:0:
figure.h:83:36: note: mismatched types '_Yp*' and 'long int'
return shared_ptr<Circle>(a);
^
In file included from /usr/include/c++/7/memory:81:0,
from main.cpp:12:
/usr/include/c++/7/bits/shared_ptr.h:119:7: note: candidate: std::shared_ptr<_Tp>::shared_ptr(const std::shared_ptr<_Tp>&) [with _Tp = Circle]
shared_ptr(const shared_ptr&) noexcept = default;
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:119:7: note: no known conversion for argument 1 from 'int64_t {aka long int}' to 'const std::shared_ptr<Circle>&'
/usr/include/c++/7/bits/shared_ptr.h:117:17: note: candidate: constexpr std::shared_ptr<_Tp>::shared_ptr() [with _Tp = Circle]
constexpr shared_ptr() noexcept : __shared_ptr<_Tp>() { }
^~~~~~~~~~
/usr/include/c++/7/bits/shared_ptr.h:117:17: note: candidate expects 0 arguments, 1 provided
|