/* * Copyright (C) 2012 Ivan Cukic * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 2, * or (at your option) any later version, as published by the Free * Software Foundation * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details * * You should have received a copy of the GNU Lesser General Public * License along with this program; if not, write to the * Free Software Foundation, Inc., * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef D_PTR_IMPLEMENTATION_H #define D_PTR_IMPLEMENTATION_H #include namespace kamd { namespace utils { template d_ptr::d_ptr() : d(new T()) { } template template d_ptr::d_ptr(Args &&... args) : d(new T(std::forward(args)...)) { } template d_ptr::~d_ptr() { } template T *d_ptr::operator->() const { return d.get(); } } // namespace utils } // namespace kamd #endif