diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d981837 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,57 @@ +{ + "files.associations": { + "cctype": "cpp", + "clocale": "cpp", + "cmath": "cpp", + "cstdarg": "cpp", + "cstddef": "cpp", + "cstdio": "cpp", + "cstdlib": "cpp", + "cstring": "cpp", + "ctime": "cpp", + "cwchar": "cpp", + "cwctype": "cpp", + "array": "cpp", + "atomic": "cpp", + "strstream": "cpp", + "*.tcc": "cpp", + "bitset": "cpp", + "chrono": "cpp", + "complex": "cpp", + "condition_variable": "cpp", + "cstdint": "cpp", + "deque": "cpp", + "list": "cpp", + "unordered_map": "cpp", + "vector": "cpp", + "exception": "cpp", + "algorithm": "cpp", + "functional": "cpp", + "ratio": "cpp", + "system_error": "cpp", + "tuple": "cpp", + "type_traits": "cpp", + "fstream": "cpp", + "future": "cpp", + "initializer_list": "cpp", + "iomanip": "cpp", + "iosfwd": "cpp", + "iostream": "cpp", + "istream": "cpp", + "limits": "cpp", + "memory": "cpp", + "mutex": "cpp", + "new": "cpp", + "ostream": "cpp", + "numeric": "cpp", + "sstream": "cpp", + "stdexcept": "cpp", + "streambuf": "cpp", + "thread": "cpp", + "cfenv": "cpp", + "cinttypes": "cpp", + "utility": "cpp", + "typeindex": "cpp", + "typeinfo": "cpp" + } +} \ No newline at end of file diff --git a/parser/caffe/caffe_parser.cc b/parser/caffe/caffe_parser.cc index 28fafbd..18b5d9e 100644 --- a/parser/caffe/caffe_parser.cc +++ b/parser/caffe/caffe_parser.cc @@ -202,9 +202,9 @@ const char *const kFieldInnerPro = "inner_product_param"; const char *const kFieldDim = "dim"; const char *const kFieldBiasTerm = "bias_term"; const char *const kDevNull = "/dev/null"; -const char* const kMessage = "message"; -const char* const kLayerParameter = "LayerParameter"; -const char* const kCloseBrace = "}"; +const std::string kMessage = "message"; +const std::string kLayerParameter = "LayerParameter"; +const std::string kCloseBrace = "}"; const std::string kOptional = "optional"; const std::string kRepeated = "repeated"; const std::string kRequired = "required";