diff options
author | John Emmas <johne53@tiscali.co.uk> | 2013-07-17 18:15:51 +0100 |
---|---|---|
committer | John Emmas <johne53@tiscali.co.uk> | 2013-07-17 18:15:51 +0100 |
commit | 5f15bc9f9fe8decfab02db7821b7b15e1d7d95ac (patch) | |
tree | 643463d8f156a7ee6b4daa1c776e5ae2a9da16e0 /libs/pbd/pbd/stl_delete.h | |
parent | eeabf89d19214bb075709009a76b3354c4332ccf (diff) | |
parent | 82d351f6ca3214ef77df555aca853e18137b7ab4 (diff) |
Merge branch 'windows' of git.ardour.org:ardour/ardour into windows
Diffstat (limited to 'libs/pbd/pbd/stl_delete.h')
-rw-r--r-- | libs/pbd/pbd/stl_delete.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/pbd/pbd/stl_delete.h b/libs/pbd/pbd/stl_delete.h index 66fb027387..ac2161560c 100644 --- a/libs/pbd/pbd/stl_delete.h +++ b/libs/pbd/pbd/stl_delete.h @@ -20,11 +20,19 @@ #ifndef __libmisc_stl_delete_h__ #define __libmisc_stl_delete_h__ + +#if __clang__ && __APPLE__ && __cplusplus >= 201103L +#include <vector> +#ifndef _CPP_VECTOR +#define _CPP_VECTOR +#endif +#endif + /* To actually use any of these deletion functions, you need to first include the revelant container type header. */ #if defined(_CPP_VECTOR) || defined(_GLIBCXX_VECTOR) || defined(__SGI_STL_VECTOR) -template<class T> void vector_delete (std::vector<T *> *vec) +template<class T> void vector_delete (std::vector<T *> *vec) { typename std::vector<T *>::iterator i; |