Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
c3fa856c
Commit
c3fa856c
authored
Aug 22, 2017
by
Davis King
Browse files
Fixed grammar
parent
ebb0f85f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
dlib/smart_pointers.h
dlib/smart_pointers.h
+4
-6
No files found.
dlib/smart_pointers.h
View file @
c3fa856c
...
...
@@ -3,14 +3,12 @@
#ifndef DLIB_SMART_POINTERs_H_
#define DLIB_SMART_POINTERs_H_
// This is legacy smart pointer code that will likely to stop working under default
// compiler flags when C++17 becomes the default standard in the compilers.
// Please consider migrating your code to contemporary smart pointers from C++
// standard library. The warning below will help to detect if the deprecated code
// was included from library's clients.
// 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
which
will fail to compile under C++17"
#pragma GCC warning "smart_pointers.h is included
. This code
will fail to compile under C++17"
#endif
#include <memory>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment