Undo redefinition of unique_ptr at end of header files.

It seems that clang both defines __cplusplus < 201103L and provides
unique_ptr (GitHub issue #215).
This commit is contained in:
Martin Whitaker 2018-11-02 21:22:10 +00:00
parent 6887c31d8c
commit 3612076943
2 changed files with 8 additions and 0 deletions

View File

@ -380,4 +380,8 @@ extern std::ostream& operator<< (std::ostream&out, const pform_name_t&);
extern std::ostream& operator<< (std::ostream&out, const name_component_t&that);
extern std::ostream& operator<< (std::ostream&out, const index_component_t&that);
#if __cplusplus < 201103L
#undef unique_ptr
#endif
#endif /* IVL_pform_types_H */

View File

@ -1097,4 +1097,8 @@ private:
Expression*delay_;
};
#if __cplusplus < 201103L
#undef unique_ptr
#endif
#endif /* IVL_expression_H */