We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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; };
想请问是什么原因造成?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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;
};
想请问是什么原因造成?
The text was updated successfully, but these errors were encountered: