Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

2.059 related fixes.

  • Loading branch information...
commit 3dec1a6fb32760b380db92914ee15b27f0855020 1 parent f48fc6e
@dsimcha dsimcha authored
View
13 scid/common/traits.d
@@ -63,18 +63,7 @@ template isConvertible( S, T ) {
}
template isScalar( T ) {
- enum isScalar = !is( T == class ) &&
- is( typeof((){
- T x;// = MinusOne!T;
- T y = x;
- T z;
-
- if( x == x || x != x ) {
- x = x;
- x += x; x -= x; x /= x; x *= x;
- x = x + x; x = x - x; x = x / x;
- }
- }()) );
+ enum isScalar = is( T : real ) || is( T : creal );
}
/** Detect whether T is a complex floating-point type. */
View
6 scid/internal/regionallocator.d
@@ -1270,10 +1270,12 @@ unittest {
import core.thread;
foreach(i; 0..100) {
- auto t = new Thread({
+ auto fun = {
threadLocalSegmentSize = 100 * 1024 * 1024;
newRegionAllocator();
- });
+ };
+
+ auto t = new Thread(fun);
t.start();
t.join();
}
View
4 scid/ops/expression.d
@@ -352,10 +352,8 @@ template isTransposition( Operation op ) {
template closureOf( T ) {
static if( isScalar!(Unqual!T) ) {
enum closureOf = Closure.Scalar;
- } else static if( is( typeof(T.closure) : Closure ) ) {
- enum closureOf = T.closure;
} else {
- static assert( false, T.stringof ~ " is not a valid expression." );
+ enum closureOf = T.closure;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.