Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stereo file has problems #32

Open
kfchandsome opened this issue Oct 27, 2021 · 0 comments
Open

stereo file has problems #32

kfchandsome opened this issue Oct 27, 2021 · 0 comments

Comments

@kfchandsome
Copy link

make生成出现问题,问题是在vtkAtomic.h文件中报错: “detail” 不明确
原文位置在528行开始:
template <> class vtkAtomic<void*>
{
private:
typedef detail::AtomicOps<sizeof(void*)> Impl;

public:
vtkAtomic() : Atomic(0)
{
}

vtkAtomic(void* val)
: Atomic(reinterpret_castImpl::value_type(val))
{
}

vtkAtomic(const vtkAtomic<void*> &atomic)
: Atomic(reinterpret_castImpl::value_type(atomic.load()))
{
}

operator void*() const
{
return reinterpret_cast<void*>(Impl::Load(&this->Atomic));
}

void* operator=(void* val)
{
Impl::Store(&this->Atomic,
reinterpret_castImpl::value_type(val));
return val;
}

vtkAtomic<void*>& operator=(const vtkAtomic<void*> &atomic)
{
this->store(atomic.load());
return *this;
}

void* load() const
{
return reinterpret_cast<void*>(Impl::Load(&this->Atomic));
}

void store(void* val)
{
Impl::Store(&this->Atomic,
reinterpret_castImpl::value_type(val));
}

private:
Impl::atomic_type Atomic;
};

想请问是什么原因造成?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant