Skip to content

Commit

Permalink
Merge pull request #3 from foonathan/hotfix/Hotfix-MSVC-Support
Browse files Browse the repository at this point in the history
Fix support for Visual Studio 12 2013

Due to an update in AppVeyor, Visual Studio 2015, not Visual Studio 2013 was tested.+
This commit fixes support for at least the library (test and examples are not supported).
  • Loading branch information
foonathan committed Nov 1, 2015
2 parents ddb7d83 + 124fdca commit 4fbc9c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/foonathan/memory/detail/align.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ namespace foonathan { namespace memory

// maximum alignment value
FOONATHAN_CONSTEXPR std::size_t max_alignment = FOONATHAN_ALIGNOF(foonathan_memory_comp::max_align_t);
#if FOONATHAN_HAS_CONSTEXPR
static_assert(is_valid_alignment(max_alignment), "ehm..?");
#endif

// returns the minimum alignment required for a node of given size
inline std::size_t alignment_for(std::size_t size) FOONATHAN_NOEXCEPT
Expand Down

0 comments on commit 4fbc9c6

Please sign in to comment.