diff options
Diffstat (limited to 'libphobos/src/std/base64.d')
-rw-r--r-- | libphobos/src/std/base64.d | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libphobos/src/std/base64.d b/libphobos/src/std/base64.d index 2f7213b..0fc92ac 100644 --- a/libphobos/src/std/base64.d +++ b/libphobos/src/std/base64.d @@ -639,7 +639,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=') */ void popFront() { - enforce(!empty, new Base64Exception("Cannot call popFront on Encoder with no data remaining")); + assert(!empty, "Cannot call popFront on Encoder with no data remaining"); range_.popFront(); @@ -757,7 +757,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=') */ void popFront() { - enforce(!empty, new Base64Exception("Cannot call popFront on Encoder with no data remaining")); + assert(!empty, "Cannot call popFront on Encoder with no data remaining"); static if (Padding != NoPadding) if (padding) @@ -1414,7 +1414,7 @@ template Base64Impl(char Map62th, char Map63th, char Padding = '=') */ void popFront() { - enforce(!empty, new Base64Exception("Cannot call popFront on Decoder with no data remaining.")); + assert(!empty, "Cannot call popFront on Decoder with no data remaining."); range_.popFront(); |