Skip to content

Instantly share code, notes, and snippets.

View technoir42's full-sized avatar

Sergey C. technoir42

View GitHub Profile
@technoir42
technoir42 / gist:972301
Created May 14, 2011 15:05
scoped_ptr, scoped_array
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
#ifndef __SCOPED_PTR_H__
#define __SCOPED_PTR_H__
#include <cassert>
template<class T>