mirror of
https://github.com/dlang/phobos.git
synced 2025-04-27 21:51:40 +03:00
fix broken Jenkins CI
This commit is contained in:
parent
c49ea4f8c7
commit
7bf26afced
1 changed files with 3 additions and 1 deletions
|
@ -438,7 +438,9 @@ template ctRegexImpl(alias pattern, string flags=[])
|
|||
static immutable staticRe = cast(immutable) r.withFactory(new CtfeFactory!(CtMatcher, Char, func));
|
||||
struct Wrapper
|
||||
{
|
||||
@property ref getRe() const { return staticRe; }
|
||||
// allow code that expects mutable Regex to still work
|
||||
// we stay "logically const"
|
||||
@trusted @property auto getRe() const { return cast() staticRe; }
|
||||
alias getRe this;
|
||||
}
|
||||
enum wrapper = Wrapper();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue