mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 13:20:05 +03:00
fix regression in databasedatum
This commit is contained in:
parent
6cb9b0349e
commit
d26e98f247
1 changed files with 7 additions and 1 deletions
|
@ -174,9 +174,15 @@ struct DatabaseDatum {
|
|||
return storage.toString();
|
||||
}
|
||||
/++
|
||||
For compatibility with earlier versions of the api, all data can easily convert to string implicitly.
|
||||
For compatibility with earlier versions of the api, all data can easily convert to string implicitly and opCast keeps to!x(this) working.
|
||||
+/
|
||||
alias toString this;
|
||||
|
||||
/// ditto
|
||||
T opCast(T)() {
|
||||
import std.conv;
|
||||
return to!T(this.toString);
|
||||
}
|
||||
}
|
||||
|
||||
/++
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue