mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-30 08:53:08 +01:00
Temporary OSX/Clang/C++11 workaround
- Adds a directive that includes <vector> upon specific conditions - WIP
This commit is contained in:
parent
fa1086d82d
commit
066df0d218
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue