// Copyright (C) 2017 Jérôme Leclercq // This file is part of the "Nazara Engine - Renderer module" // For conditions of distribution and use, see copyright notice in Config.hpp #include namespace Nz { template ScopedXCB::ScopedXCB(T* pointer) : m_pointer(pointer) { } template ScopedXCB::~ScopedXCB() { std::free(m_pointer); } template T* ScopedXCB::operator ->() const { return m_pointer; } template T** ScopedXCB::operator &() { return &m_pointer; } template ScopedXCB::operator bool() const { return m_pointer != nullptr; } template T* ScopedXCB::get() const { return m_pointer; } } #include