Skip to content

Commit

Permalink
Fix CTFE Error: reinterpreting cast from inout(string)*
Browse files Browse the repository at this point in the history
std/typecons.d(648): Error: reinterpreting cast from inout(string)* to inout(Tuple!(string, string, string))* is not supported in CTFE
std/traits.d(566):        called from here: findSplit(s, "(").asTuple._Tuple_super()
std/traits.d(568):        called from here: adjustIdent("std")
std/traits.d(556): Error: template instance std.traits.fqnSym!(std) error instantiating
std/traits.d(556):        instantiated from here: fqnSym!(traits)
std/traits.d(478):        instantiated from here: fqnSym!(fullyQualifiedName)
std/traits.d(484):        instantiated from here: fullyQualifiedName!(fullyQualifiedName)
std/traits.d(484):        while evaluating: static assert(fullyQualifiedName!(fullyQualifiedName) == "std.traits.fullyQualifiedName")
  • Loading branch information
wilzbach committed Jan 17, 2018
1 parent 651c302 commit 8becc70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/traits.d
Expand Up @@ -563,7 +563,7 @@ private template fqnSym(alias T)

if (s.skipOver("package ") || s.skipOver("module "))
return s;
return s.findSplit("(")[0];
return s.findSplit("(").pre;
}
enum fqnSym = parentPrefix ~ adjustIdent(__traits(identifier, T));
}
Expand Down

0 comments on commit 8becc70

Please sign in to comment.