On 11/16/19 10:20 AM, James Blachly wrote:
On 11/16/19 9:48 AM, James Blachly wrote:
I am trying to write templated code that will take a character array
-- mutable, const, or immutable (string).
I am aware of isSomeString, but I am still curious about Unqual array
from a learning
On 11/16/19 10:20 AM, James Blachly wrote:
On 11/16/19 9:48 AM, James Blachly wrote:
I am trying to write templated code that will take a character array
-- mutable, const, or immutable (string).
I am aware of isSomeString, but I am still curious about Unqual array
from a learning
On Saturday, 16 November 2019 at 15:20:26 UTC, James Blachly
wrote:
On 11/16/19 9:48 AM, James Blachly wrote:
I am trying to write templated code that will take a character
array -- mutable, const, or immutable (string).
I am aware of isSomeString, but I am still curious about Unqual
array
On 11/16/19 9:48 AM, James Blachly wrote:
I am trying to write templated code that will take a character array --
mutable, const, or immutable (string).
I am aware of isSomeString, but I am still curious about Unqual array
from a learning perspective.
I am trying to write templated code that will take a character array --
mutable, const, or immutable (string).
static assert(is(Unqual!(const char) == char));
(Succeeds)
static assert(is(Unqual!(const(char)[]) == char[]));
Error: static assert: `is(const(char)[] == char[])` is false
Is