Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/sentencepiece.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTaku Kudo <taku910@users.noreply.github.com>2018-06-19 06:42:57 +0300
committerGitHub <noreply@github.com>2018-06-19 06:42:57 +0300
commitfbd7c2b8f7f951b33df079589b8c7b4eb5e22fdd (patch)
tree3f347ab1fcfd7fdaa47fc77921512c1c5172b32b /src
parentdd1af3ba0c557ab17c4e2ec9897293fdf3134d67 (diff)
Update sentencepiece_processor.h
Diffstat (limited to 'src')
-rw-r--r--src/sentencepiece_processor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sentencepiece_processor.h b/src/sentencepiece_processor.h
index a2dd681..07f113c 100644
--- a/src/sentencepiece_processor.h
+++ b/src/sentencepiece_processor.h
@@ -145,12 +145,12 @@ class Status {
// the argument of public APIs.
class min_string_view {
public:
- constexpr min_string_view() noexcept : ptr_(nullptr), length_(0) {}
+ min_string_view() noexcept : ptr_(nullptr), length_(0) {}
min_string_view(const std::string &str)
: ptr_(str.data()), length_(str.size()) {}
min_string_view(const char *str)
: ptr_(str), length_(std::strlen(str)) {}
- constexpr min_string_view(const char *data, size_t len)
+ min_string_view(const char *data, size_t len)
: ptr_(data), length_(len) {}
const char *data() const { return ptr_; }
size_t size() const { return length_; }