1 // Copyright (C) 2008  Davis E. King (davis@dlib.net)
2 // License: Boost Software License   See LICENSE.txt for the full license.
3 #ifndef DLIB_SMART_POINTERs_THREAD_SAFE_H_
4 #define DLIB_SMART_POINTERs_THREAD_SAFE_H_
5 
6 // This is legacy smart pointer code that will likely to stop working under default
7 // compiler flags when C++17 becomes the default standard in the compilers.
8 // Please consider migrating your code to contemporary smart pointers from C++
9 // standard library. The warning below will help to detect if the deprecated code
10 // was included from library's clients.
11 #if (defined(__GNUC__) && ((__GNUC__ >= 4 && __GNUC_MINOR__ >= 8) || (__GNUC__ > 4))) || \
12   (defined(__clang__) && ((__clang_major__ >= 3 && __clang_minor__ >= 4)))
13 #pragma GCC warning "smart_pointers_thread_safe.h is included which will fail to compile under C++17"
14 #endif
15 
16 #include "smart_pointers/shared_ptr_thread_safe.h"
17 
18 #endif // DLIB_SMART_POINTERs_THREAD_SAFE_H_
19 
20 
21 
22