Sebastian Wilzbach
67eafbd7e7
std.traits: remove html comment
2016-04-29 18:57:37 +03:00
Dmitry Olshansky
893a1fe1ca
Merge pull request #4195 from Biotronic/fix-15920
...
Fix 15920 - std.traits.MemberFunctionsTuple gives a wrong result
2016-04-28 19:05:48 +04:00
Sebastian Wilzbach
d1714c9afb
minor style fixes
2016-04-27 04:18:22 +03:00
Sebastian Wilzbach
3d67cd228c
style fix: space between operators
2016-04-26 22:26:20 +03:00
biotronic
26f3eb9b1f
Fix issue 15920 - std.traits.MemberFunctionsTuple gives a wrong result
2016-04-13 17:34:56 +00:00
Dmitry Olshansky
fda2df5592
Merge pull request #3275 from Biotronic/master
...
Fix 14561 - Large enums cannot be parsed due to too many recursive template expansions
2016-04-09 16:45:19 +04:00
Uldis Kalnins
f7359a8da7
fix getSymbolsByUDA to not fail if struct has no UDAs
2016-04-06 19:10:05 +03:00
biotronic
4cb7c0199d
Fix 14561 - Large enums cannot be parsed due to too many recursive template expansions
2016-04-03 16:47:36 +00:00
Martin Nowak
5fb53481fc
fix Issue 15782 - Alias no longer strips qualifiers from user defined types
...
- introduce OldAlias for internal usage
- deprecate unqualifying of UDTs
- unfortunately deprecation message isn't shown in many use-cases
2016-03-20 16:49:42 +01:00
Sebastian Wilzbach
66e0dc39c5
convert docstring examples to unittests
2016-03-09 21:22:15 +02:00
John Colvin
b3f05a28d6
Make std.traits.Select work for compile-time expressions
2016-02-19 20:45:27 +00:00
Benjamin L. Merritt
5f08c058ab
Changed "Examples:" in Ddoc to "Example:"
2015-12-17 18:32:41 -08:00
Brian Schott
40b2e45e33
Merge pull request #3838 from jmdavis/deprecations
...
Move some deprecations along.
2015-11-29 11:57:28 -08:00
Brian Schott
d1d129243f
Merge pull request #3827 from rcorre/getSymbolsByUDA_private2
...
Enable getSymbolsByUDA to retrieve private members.
2015-11-29 01:41:03 -08:00
Ryan Roden-Corrent
79fd6aac79
Enable getSymbolsByUDA to retrieve private members.
...
Resolves #15335 : getSymbolsByUDA fails if type has private members.
Generous (ab)use of mixins allows getSymbolsByUDA to reference symbols
without trying to access them, allowing it to inspect private members
without failing.
Testing this required private symbols defined outside of std.traits.
This adds std.internal.test.uda, which defines a struct containing
private members that is used in a unittest added to std.traits.
2015-11-28 07:14:47 -05:00
Vladimir Panteleev
e90be60a67
Merge pull request #3839 from aG0aep6G/ddlink
...
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
2015-11-27 04:54:52 +02:00
Jonathan M Davis
7afe668428
Merge pull request #3807 from dcarp/Fix15320
...
[Issue 15320] eliminate 'static assert(__traits(compiles,..'
2015-11-26 17:57:44 -08:00
anonymous
6832caf0be
use DDLINK/DDSUBLINK instead of LINK2 and raw HTML
...
DDLINK/DDSUBLINK use ROOT_DIR which is more robust than a relative path.
2015-11-26 16:04:44 +01:00
Jonathan M Davis
d34164a2ea
Move some deprecations along.
2015-11-26 00:28:38 -08:00
anonymous
1c8467c676
update links to spec pages
2015-11-24 17:58:49 +01:00
Dragos Carp
eb293b5063
Fix issue 15320
2015-11-13 03:45:29 +01:00
Jack Applegame
cafed8e1c3
allows std.traits.getUDAs to filter attributes by template type.
...
See unittests.
2015-11-05 11:18:16 +03:00
Andrei Alexandrescu
168d96dfd7
Merge pull request #3395 from nordlow/either-and-every
...
Add new algorithm: either()
2015-10-29 16:57:59 -04:00
Per Nordlöw
c46a463628
Add algorithm either() and trait allSatisfy()
2015-10-29 21:11:05 +01:00
Martin Nowak
0e95f6723a
Merge remote-tracking branch 'upstream/stable' into merge_stable
2015-10-27 15:55:59 +01:00
Martin Nowak
0a9f9ccc3e
fixup for string-like overloads
...
- undocument overloads for aliased/static strings
- make std.traits helpers phobos internal
- rename isStringLike to isConvertibleToString for clearer documentation
- rename peelStringLike to convertToString
- fix a few staticMap!(selectString) uses in std.path
2015-10-26 19:50:08 +01:00
Martin Nowak
f5843a3cfe
add isStringLike to std.traits
...
- select only structs/static array that are implicitly convertible to a string
- also add internal peelStringLike helper
2015-10-25 18:59:08 +01:00
Walter Bright
cf22992cbb
Merge pull request #3768 from CyberShadow/pull-20151024-051829
...
HTML fixes
2015-10-24 15:05:00 -07:00
Vladimir Panteleev
86cf380007
HTML fixes
2015-10-24 06:19:23 +00:00
Jack Stouffer
58c48c8b3d
added unittest docs to isNarrowString
2015-10-23 10:35:26 -04:00
Andrei Alexandrescu
8b974d2b49
Undo inadvertent changes to std/math.d and std/traits.d, delete std/typed_allocator.d
2015-10-02 07:35:09 -04:00
Andrei Alexandrescu
0477b4e458
Johannes Phau's review
2015-10-02 07:33:42 -04:00
Petar Kirov
a3cd1da909
Remove redundant assert in documented unittest
2015-09-10 16:51:35 +03:00
Dmitry Olshansky
a336f3c7bc
Merge pull request #3497 from aG0aep6G/hasMember
...
std.traits.hasMember: just forward to __traits(hasMember, ...)
2015-08-27 09:29:55 +03:00
anonymous
b593591978
Ddoc: fix two stray parentheses
2015-08-13 22:18:31 +02:00
MetaLang
387b7f7319
Remove workaround for unittests failing with compiler change
...
I had to introduce a workaround in https://github.com/D-Programming-Language/phobos/pull/3547 because the unittests would not pass without the matching compiler change https://github.com/D-Programming-Language/dmd/pull/4868 . Now that the compiler fix is merged, the workaround can be removed.
2015-08-12 10:31:29 -03:00
MetaLang
597b0e0cad
Fix unittests that ignore the return attribute
2015-08-12 00:16:28 -03:00
Martin Nowak
5ca7ddad60
Merge remote-tracking branch 'upstream/stable' into merge_stable
...
Conflicts:
posix.mak
Manually edited:
std/datetime.d (rename toNormalizedPath -> asNormalizedPath)
2015-07-24 01:28:58 +02:00
Walter Bright
31c9630702
add std.traits.isAutodecodableString() to fix Issue 14765
2015-07-23 07:22:25 +02:00
anonymous
3d02450030
Ddoc: add missing parenthesis
2015-07-16 21:35:31 +02:00
anonymous
dd2161705a
std.traits.hasMember: just forward to __traits(hasMember, ...)
...
This way opDispatch'ed members are recognized.
Fixes issue 14605 - RefAppender fails isOutputRange.
2015-07-16 21:29:46 +02:00
MetaLang
69d62066d2
Add CopyConstness
2015-07-15 23:14:33 -03:00
Hackerpilot
7457e9eddf
Use 'Identity' intstead of local 'I' alias
2015-06-22 14:59:57 -07:00
Hackerpilot
5e7e98efcb
Fix typo
2015-06-19 15:26:00 -07:00
Hackerpilot
bbdf899a7d
Document the non-recursive nature of getSymbolsByUDA
2015-06-19 14:24:05 -07:00
Hackerpilot
b3c2d0474d
Add getSymbolsByUDA template
2015-06-18 14:10:42 -07:00
Robert Schadek
a9758d00f5
Merge pull request #3363 from economicmodeling/add-getUDA
...
Add getUDA template
2015-06-18 11:17:43 +02:00
Hackerpilot
0b1e29cfa1
Rename ModifyTypePreservingSTC to ModifyTypePreservingTQ and make it public.
2015-06-03 16:10:35 -07:00
Hackerpilot
9cb43fb7b6
Rename getUDA to getUDAs and allow it to return multiple matching UDAs
2015-06-03 13:40:58 -07:00
Hackerpilot
59f259f197
Add getUDA template
2015-06-02 17:08:20 -07:00