← Back to index
|
Original Bugzilla link
Bug 11253 – std.algorithm.count is not nothrow
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-14T02:50:00Z
Last change time
2014-05-09T20:08:29Z
Keywords
pull
Assigned to
andrej.mitrovich
Creator
bearophile_hugs
Comments
Comment #0
by bearophile_hugs — 2013-10-14T02:50:04Z
import std.algorithm: count; void main() nothrow { [1, 2, 3].count([2, 3]); } dmd 2.064beta gives: test.d(3): Error: 'std.algorithm.count!("a == b", int[], int[]).count' is not nothrow test.d(2): Error: function 'D main' is nothrow yet may throw
Comment #1
by andrej.mitrovich — 2014-04-26T19:25:09Z
https://github.com/D-Programming-Language/phobos/pull/2128
Comment #2
by github-bugzilla — 2014-05-09T20:08:28Z
Commits pushed to master at
https://github.com/D-Programming-Language/phobos
https://github.com/D-Programming-Language/phobos/commit/5ad48eb130fa5f33a12cb9da8e319e4f3eb6d9ec
Fix Issue 11253 - std.algorithm.count is not nothrow.
https://github.com/D-Programming-Language/phobos/commit/254290daf77dd10c0a7c888ff2e2eaa2d9d906cb
Merge pull request #2128 from AndrejMitrovic/Fix11253 Issue 11253 - std.algorithm.count is not nothrow