Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Simplify the check if cent/ucent is supported.
Browse files Browse the repository at this point in the history
The same check is used in Phobos in module std.traits.
  • Loading branch information
redstar committed May 1, 2015
1 parent d04176f commit 52b8d84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/rt/typeinfo/ti_cent.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module rt.typeinfo.ti_cent;

private import rt.util.hash;

static if(__traits(compiles, { cent c = 42; })):
static if(is(cent)):

// cent

Expand Down
2 changes: 1 addition & 1 deletion src/rt/typeinfo/ti_ucent.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module rt.typeinfo.ti_ucent;

private import rt.util.hash;

static if (__traits(compiles, { ucent uc = 42; })):
static if (is(ucent)):

// ucent

Expand Down

0 comments on commit 52b8d84

Please sign in to comment.