On 1/13/14, anonymous wrote:
> On Monday, 13 January 2014 at 13:41:30 UTC, Orvid King wrote:
>> If you just want to check if specifically it's a structure, you
>> could
>> always check `__traits(compiles, T()) && if(typeof(T()) == T)`
>> beware
>> however that this will evaluate to true if T is a
On Monday, 13 January 2014 at 13:41:30 UTC, Orvid King wrote:
If you just want to check if specifically it's a structure, you
could
always check `__traits(compiles, T()) && if(typeof(T()) == T)`
beware
however that this will evaluate to true if T is a class with a
static
opCall who's return ty
On Monday, 13 January 2014 at 13:41:30 UTC, Orvid King wrote:
If you just want to check if specifically it's a structure, you
could
always check `__traits(compiles, T()) && if(typeof(T()) == T)`
beware
however that this will evaluate to true if T is a class with a
static
opCall who's return ty
If you just want to check if specifically it's a structure, you could
always check `__traits(compiles, T()) && if(typeof(T()) == T)` beware
however that this will evaluate to true if T is a class with a static
opCall who's return type is T.
On 1/13/14, Tobias Pankrath wrote:
> On Sunday, 12 Janua
On Sunday, 12 January 2014 at 20:16:15 UTC, Nordlöw wrote:
Is there a trait to check whether a type has value or reference
semantics?
I need this in a template struct that adaptively (using static
if) represent histogram bins as either a dense static array or
a sparse associative array.
Add
On Sunday, 12 January 2014 at 20:16:15 UTC, Nordlöw wrote:
Is there a trait to check whether a type has value or reference
semantics?
I need this in a template struct that adaptively (using static
if) represent histogram bins as either a dense static array or
a sparse associative array.
Tha
On Sunday, 12 January 2014 at 20:16:15 UTC, Nordlöw wrote:
Is there a trait to check whether a type has value or reference
semantics?
I need this in a template struct that adaptively (using static
if) represent histogram bins as either a dense static array or
a sparse associative array.
No,