Skip to content

Commit

Permalink
Multi-version fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lcodes committed Jan 6, 2016
1 parent 274fb02 commit 49d7006
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions gl3n/util.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ private {
import gl3n.linalg : Vector, Matrix, Quaternion;
import gl3n.plane : PlaneT;

import std.meta : AliasSeq;
alias TypeTuple = AliasSeq;
static import std.compiler;

static if (std.compiler.version_major > 2 ||
std.compiler.version_minor > 68)
{
import std.meta : AliasSeq;
alias TypeTuple = AliasSeq;
}
else {
import std.typetuple : TypeTuple;
}
}

private void is_vector_impl(T, int d)(Vector!(T, d) vec) {}
Expand Down

0 comments on commit 49d7006

Please sign in to comment.