Commit 1581a94c authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

* src/misc/unique_ptr.hh: Add missing operator->() const.

parent 882097a2
// -*- coding: utf-8 -*-
// Copyright (C) 2012 Laboratoire de Recherche et
// Copyright (C) 2012, 2013 Laboratoire de Recherche et
// Développement de l'Epita (LRDE).
//
// This file is part of Spot, a model checking library.
......@@ -28,6 +28,7 @@ namespace spot
class unique_ptr
{
typedef T* pointer;
typedef const T* const_pointer;
public:
unique_ptr(pointer ptr)
: ptr_(ptr)
......@@ -50,6 +51,12 @@ namespace spot
return ptr_;
}
const_pointer
operator->() const
{
return ptr_;
}
private:
pointer ptr_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment