Skip to content

Commit

Permalink
Merge pull request #97 from slizzered/issue65-add_comment
Browse files Browse the repository at this point in the history
Added TODO to boost_static_assert cast warning
  • Loading branch information
ax3l committed Aug 28, 2015
2 parents da904d0 + 1d0b136 commit b5737f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/include/mallocMC/alignmentPolicies/Shrink_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ namespace Shrink2NS{
#endif
static const uint32 dataAlignment = MALLOCMC_AP_SHRINK_DATAALIGNMENT;

// \TODO: The static_cast can be removed once the minimal dependencies of
// this project is are at least CUDA 7.0 and gcc 4.8.2
BOOST_STATIC_ASSERT(static_cast<uint32>(dataAlignment) > 0);
//dataAlignment must also be a power of 2!
BOOST_STATIC_ASSERT(dataAlignment && !(dataAlignment & (dataAlignment-1)) );
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ namespace DistributionPolicies{

//all the properties must be unsigned integers > 0
BOOST_STATIC_ASSERT(!std::numeric_limits<typename Properties::pagesize::type>::is_signed);

// \TODO: The static_cast can be removed once the minimal dependencies of
// this project is are at least CUDA 7.0 and gcc 4.8.2
BOOST_STATIC_ASSERT(static_cast<uint32>(pagesize) > 0);

public:
Expand Down

0 comments on commit b5737f7

Please sign in to comment.