summaryrefslogtreecommitdiffstats
path: root/ml/dlib/dlib/smart_pointers.h
blob: 905e88b15fb1c3c80bcf814fc046bea865ed638a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// Copyright (C) 2007  Davis E. King (davis@dlib.net)
// License: Boost Software License   See LICENSE.txt for the full license.
#ifndef DLIB_SMART_POINTERs_H_
#define DLIB_SMART_POINTERs_H_ 

// This is legacy smart pointer code that will likely stop working under default compiler
// flags when C++17 becomes the default standard in compilers.  Please consider migrating
// your code to new smart pointers from C++ standard library. 
#if (defined(__GNUC__) && ((__GNUC__ >= 4 && __GNUC_MINOR__ >= 8) || (__GNUC__ > 4))) || \
  (defined(__clang__) && ((__clang_major__ >= 3 && __clang_minor__ >= 4)))
#pragma GCC warning "smart_pointers.h is included. This code will fail to compile under C++17"
#endif

#include <memory>

#include "smart_pointers/shared_ptr.h"
#include "smart_pointers/weak_ptr.h"
#include "smart_pointers/scoped_ptr.h"

#endif // DLIB_SMART_POINTERs_H_