Switch all checks for c++11 to support vs2015
This commit is contained in:
@@ -70,7 +70,7 @@
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#include <mutex>
|
||||
#endif
|
||||
|
||||
@@ -189,7 +189,7 @@ protected:
|
||||
virtual int sync()
|
||||
{
|
||||
// If working on multiple threads, we need to serialize the output correctly (requires c++11 headers)
|
||||
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
std::lock_guard<std::mutex> lck (serializer_);
|
||||
#endif
|
||||
|
||||
@@ -214,7 +214,7 @@ protected:
|
||||
char c = traits_type::to_char_type(_c);
|
||||
|
||||
// If working on multiple threads, we need to serialize the output correctly (requires c++11 headers)
|
||||
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
{
|
||||
std::lock_guard<std::mutex> lck (serializer_);
|
||||
buffer_.push_back(c);
|
||||
@@ -264,7 +264,7 @@ private:
|
||||
bool enabled_;
|
||||
|
||||
// If working on multiple threads, we need to serialize the output correctly (requires c++11 headers)
|
||||
#if __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined( __GXX_EXPERIMENTAL_CXX0X__ )
|
||||
std::mutex serializer_;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace OpenMesh {
|
||||
*/
|
||||
template<typename PROPTYPE, typename MeshT>
|
||||
class PropertyManager {
|
||||
#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
public:
|
||||
PropertyManager(const PropertyManager&) = delete;
|
||||
PropertyManager& operator=(const PropertyManager&) = delete;
|
||||
@@ -148,7 +148,7 @@ class PropertyManager {
|
||||
|
||||
MeshT &getMesh() const { return *mesh_; }
|
||||
|
||||
#if __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
#if _MSC_VER >= 1900 || __cplusplus > 199711L || defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
/// Only for pre C++11 compatibility.
|
||||
|
||||
typedef PropertyManager<PROPTYPE, MeshT> Proxy;
|
||||
|
||||
Reference in New Issue
Block a user