Skip to content

Commit

Permalink
Switch to using Swift-specific type traits to unbreak the Linux build.
Browse files Browse the repository at this point in the history
Swift SVN r32470
  • Loading branch information
rjmccall committed Oct 6, 2015
1 parent d871c9a commit 01933ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/swift/Basic/PrefixMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <iterator>
#include <type_traits>
#include "swift/Basic/type_traits.h"

namespace swift {

Expand All @@ -61,10 +61,10 @@ class PrefixMap {
public:
using KeyType = ArrayRef<KeyElementType>;

static_assert(std::is_trivially_copyable<KeyElementType>::value,
static_assert(IsTriviallyCopyable<KeyElementType>::value,
"key element type must be trivially copyable");
static_assert(std::is_trivially_default_constructible<KeyElementType>::value,
"key element type must be default-initializable");
static_assert(IsTriviallyConstructible<KeyElementType>::value,
"key element type must be trivially default-initializable");

private:
template <typename T>
Expand Down

0 comments on commit 01933ce

Please sign in to comment.