DetectorGraph
2.0
include
sharedptr.hpp
Go to the documentation of this file.
1
// Copyright 2017 Nest Labs, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef DETECTORGRAPH_INCLUDE_SHARED_PTR_HPP_
16
#define DETECTORGRAPH_INCLUDE_SHARED_PTR_HPP_
17
18
// This is just a detection of C++11
19
// to fall back to TR1 if that's not the case.
20
//
21
// Thus, if the detectorgraph library is compiled using c++11,
22
// then so must everyone who uses the library
23
#if __cplusplus >= 201103L
24
25
#include <memory>
26
namespace
ptr =
std
;
27
28
# else
29
30
#include <tr1/memory>
31
namespace
ptr = std::tr1;
32
33
#endif
34
35
#endif // DETECTORGRAPH_INCLUDE_SHARED_PTR_HPP_
std
Generated by
1.8.13