Skip to content

Commit

Permalink
Fix compilation with VS2015 Update 2 (#1754)
Browse files Browse the repository at this point in the history
  • Loading branch information
kornholi committed May 1, 2016
1 parent 7f47763 commit 0d59454
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lockfree.h
Expand Up @@ -20,6 +20,10 @@
#ifndef FS_LOCKFREE_H_8C707AEB7C7235A2FBC5D4EDDF03B008
#define FS_LOCKFREE_H_8C707AEB7C7235A2FBC5D4EDDF03B008

#if _MSC_FULL_VER == 190023918 // Workaround for VS2015 Update 2. Boost.Lockfree is a header-only library, so this should be safe to do.
#define _ENABLE_ATOMIC_ALIGNMENT_FIX
#endif

#include <boost/lockfree/stack.hpp>

template <typename T, size_t CAPACITY>
Expand Down

0 comments on commit 0d59454

Please sign in to comment.