February 06, 2014 [phobos] [D-Programming-Language/phobos] db8829: Fix Issue 5361 - Add TemplateOf and TemplateArgsOf | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/phobos Commit: db88295013fabb9a31368af9cf02787125062df3 https://github.com/D-Programming-Language/phobos/commit/db88295013fabb9a31368af9cf02787125062df3 Author: Peter Alexander <peter.alexander.au@gmail.com> Date: 2014-01-26 (Sun, 26 Jan 2014) Changed paths: M std/traits.d Log Message: ----------- Fix Issue 5361 - Add TemplateOf and TemplateArgsOf Examples: ```d struct Foo(A, B) {} alias Bar = Foo!(int, real); static assert(__traits(isSame, TemplateOf!Bar, Foo)); static assert(is(TemplateArgsOf!Bar == TypeTuple!(int, real))); ``` https://d.puremagic.com/issues/show_bug.cgi?id=5361 Commit: e6e323175d8ea83aba09d85c6b927d61835c76c3 https://github.com/D-Programming-Language/phobos/commit/e6e323175d8ea83aba09d85c6b927d61835c76c3 Author: Hara Kenji <k.hara.pg+dev@gmail.com> Date: 2014-02-06 (Thu, 06 Feb 2014) Changed paths: M std/traits.d Log Message: ----------- Merge pull request #1884 from Poita/bug5361 Fix Issue 5361 - Add TemplateOf and TemplateArgsOf Compare: https://github.com/D-Programming-Language/phobos/compare/0b066c74f54f...e6e323175d8e |
Copyright © 1999-2021 by the D Language Foundation