mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 10:51:52 -04:00
Fix incorrect dyn cast (#1467)
This commit is contained in:
parent
86b50d2d4e
commit
4b751c2d37
1 changed files with 2 additions and 2 deletions
|
|
@ -42,7 +42,7 @@ Branches::Impl::Impl(const u64 &default_minfreespace_)
|
|||
Branches::Impl&
|
||||
Branches::Impl::operator=(Branches::Impl &rval_)
|
||||
{
|
||||
using type = std::vector<std::shared_ptr<Branch>>;
|
||||
using type = std::vector<Branch>;
|
||||
auto this_base = dynamic_cast<type*>(this);
|
||||
auto rval_base = dynamic_cast<type*>(&rval_);
|
||||
|
||||
|
|
@ -54,7 +54,7 @@ Branches::Impl::operator=(Branches::Impl &rval_)
|
|||
Branches::Impl&
|
||||
Branches::Impl::operator=(Branches::Impl &&rval_)
|
||||
{
|
||||
using type = std::vector<std::shared_ptr<Branch>>;
|
||||
using type = std::vector<Branch>;
|
||||
auto this_base = dynamic_cast<type*>(this);
|
||||
auto rval_base = dynamic_cast<type*>(&rval_);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue