OmniSciDB  04ee39c94c
mapd_shared_ptr.h
Go to the documentation of this file.
1 /*
2  * Copyright 2017 MapD Technologies, Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MAPD_SHARED_PTR
18 #define MAPD_SHARED_PTR
19 
20 #ifdef HAVE_THRIFT_STD_SHAREDPTR
21 #include <memory>
22 namespace mapd {
23 using std::make_shared;
24 using std::shared_ptr;
25 } // namespace mapd
26 #else
27 #include <boost/make_shared.hpp>
28 namespace mapd {
29 using boost::make_shared;
30 using boost::shared_ptr;
31 } // namespace mapd
32 #endif // HAVE_THRIFT_STD_SHAREDPTR
33 
34 #endif // MAPD_SHARED_PTR
Definition: DataGen.cpp:60