buggins / ddbc

DDBC is DB Connector for D language (similar to JDBC)
78 stars 45 forks source link

Deprecation: std.exception.enforceEx #72

Closed SingingBush closed 5 years ago

SingingBush commented 5 years ago

In the same was as https://github.com/buggins/hibernated/issues/60 this project should use the following to allow dmd versions above and below 2.089

// For backwards compatibily
// 'enforceEx' will be removed with 2.089
static if(__VERSION__ < 2080) {
    alias enforceHelper = enforceEx;
} else {
    alias enforceHelper = enforce;
}