diff options
-rw-r--r-- | cosv/inc/cosv/str_types.hxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/cosv/inc/cosv/str_types.hxx b/cosv/inc/cosv/str_types.hxx index 59f289b81edf..ecf9c997c271 100644 --- a/cosv/inc/cosv/str_types.hxx +++ b/cosv/inc/cosv/str_types.hxx @@ -32,11 +32,8 @@ struct str typedef ::size_t position; typedef ::size_t size; - enum constants - { - npos = position(-1), - maxsize = size(-1) - }; + static const position npos = -1; + static const size maxsize = -1; enum insert_mode { |