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