Advertisement
Guest User

Thors' Serializer

a guest
Oct 24th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 32.83 KB | None | 0 0
  1. make -C Json install PREFIX=/build CXXSTDVER=
  2. make[1]: Entering directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
  3. Building Objects for Testing and Coverage
  4. make[2]: Entering directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
  5. ERROR
  6. g++ -c ParserShiftReduce.tab.cpp -o coverage/ParserShiftReduce.tab.o -fPIC -Wall -Wextra -Wstrict-aliasing -pedantic -Werror -Wunreachable-code -Wno-long-long -Wno-overloaded-virtual -Wno-parentheses -Wno-unreachable-code -I/build/include -isystem /build/include3rd -DBOOST_FILESYSTEM_VERSION=3 -DCOVERAGE_Json -g -fprofile-arcs -ftest-coverage -DCOVERAGE_TEST -Wno-deprecated-register
  7. ========================================
  8. In file included from ParserInterface.h:5:0,
  9. from ParserShiftReduce.y:9:
  10. JsonDom.h:51:19: error: ‘unique_ptr’ is not a member of ‘std’
  11. typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
  12. ^
  13. JsonDom.h:51:19: error: ‘unique_ptr’ is not a member of ‘std’
  14. JsonDom.h:51:46: error: wrong number of template arguments (1, should be 2)
  15. typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
  16. ^
  17. In file included from /usr/include/c++/4.8/bits/stl_algobase.h:64:0,
  18. from /usr/include/c++/4.8/bits/char_traits.h:39,
  19. from /usr/include/c++/4.8/string:40,
  20. from /usr/include/c++/4.8/stdexcept:39,
  21. from JsonException.h:5,
  22. from JsonDom.h:5,
  23. from ParserInterface.h:5,
  24. from ParserShiftReduce.y:9:
  25. /usr/include/c++/4.8/bits/stl_pair.h:96:12: error: provided for ‘template<class _T1, class _T2> struct std::pair’
  26. struct pair
  27. ^
  28. In file included from ParserInterface.h:5:0,
  29. from ParserShiftReduce.y:9:
  30. JsonDom.h:51:47: error: expected unqualified-id before ‘,’ token
  31. typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
  32. ^
  33. JsonDom.h:51:63: error: expected initializer before ‘<’ token
  34. typedef std::pair<std::unique_ptr<std::string>,std::unique_ptr<JsonValue> > JsonMapValue;
  35. ^
  36. JsonDom.h:120:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
  37. std::unique_ptr<std::string> value;
  38. ^
  39. JsonDom.h:121:35: error: expected ‘)’ before ‘<’ token
  40. JsonStringItem(std::unique_ptr<std::string>& data): value(std::move(data)) {}
  41. ^
  42. JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonStringItem::print(std::ostream&) const’:
  43. JsonDom.h:123:75: error: ‘value’ was not declared in this scope
  44. virtual void print(std::ostream& stream) const { stream << '"' << *value << '"'; }
  45. ^
  46. JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonStringItem::setValue(std::string&) const’:
  47. JsonDom.h:125:70: error: ‘value’ was not declared in this scope
  48. virtual void setValue(std::string& dst) const {dst = *value;}
  49. ^
  50. JsonDom.h: At global scope:
  51. JsonDom.h:129:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
  52. std::unique_ptr<std::string> value;
  53. ^
  54. JsonDom.h:130:35: error: expected ‘)’ before ‘<’ token
  55. JsonNumberItem(std::unique_ptr<std::string>& data): value(std::move(data)) {}
  56. ^
  57. JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::print(std::ostream&) const’:
  58. JsonDom.h:132:68: error: ‘value’ was not declared in this scope
  59. virtual void print(std::ostream& stream) const { stream << *value; }
  60. ^
  61. JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::setValue(long int&) const’:
  62. JsonDom.h:134:74: error: ‘value’ was not declared in this scope
  63. virtual void setValue(long& dst) const {dst = std::atol(value->c_str());}
  64. ^
  65. JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonNumberItem::setValue(double&) const’:
  66. JsonDom.h:135:74: error: ‘value’ was not declared in this scope
  67. virtual void setValue(double& dst) const {dst = std::atof(value->c_str());}
  68. ^
  69. JsonDom.h: At global scope:
  70. JsonDom.h:157:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
  71. std::unique_ptr<JsonMap> value;
  72. ^
  73. JsonDom.h:158:32: error: expected ‘)’ before ‘<’ token
  74. JsonMapItem(std::unique_ptr<JsonMap>& data): value(std::move(data)) {}
  75. ^
  76. JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonMapItem::print(std::ostream&) const’:
  77. JsonDom.h:160:68: error: ‘value’ was not declared in this scope
  78. virtual void print(std::ostream& stream) const { stream << *value; }
  79. ^
  80. JsonDom.h: At global scope:
  81. JsonDom.h:165:5: error: ‘unique_ptr’ in namespace ‘std’ does not name a type
  82. std::unique_ptr<JsonArray> value;
  83. ^
  84. JsonDom.h:166:34: error: expected ‘)’ before ‘<’ token
  85. JsonArrayItem(std::unique_ptr<JsonArray>& data): value(std::move(data)) {}
  86. ^
  87. JsonDom.h: In member function ‘virtual void ThorsAnvil::Json::JsonArrayItem::print(std::ostream&) const’:
  88. JsonDom.h:168:68: error: ‘value’ was not declared in this scope
  89. virtual void print(std::ostream& stream) const { stream << *value; }
  90. ^
  91. In file included from ParserShiftReduce.y:9:0:
  92. ParserInterface.h: At global scope:
  93. ParserInterface.h:55:39: error: ‘mapCreate’ declared as a ‘virtual’ field
  94. virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
  95. ^
  96. ParserInterface.h:55:29: error: expected ‘;’ at end of member declaration
  97. virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
  98. ^
  99. ParserInterface.h:55:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserInterface::mapCreate’ conflicts with a previous declaration
  100. virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
  101. ^
  102. ParserInterface.h:54:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserInterface::mapCreate()’
  103. virtual JsonMap* mapCreate() = 0;
  104. ^
  105. ParserInterface.h:55:51: error: expected ‘)’ before ‘*’ token
  106. virtual JsonMap* mapCreate(JsonMapValue* val) = 0;
  107. ^
  108. ParserInterface.h:56:53: error: ‘JsonMapValue’ has not been declared
  109. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) = 0;
  110. ^
  111. ParserInterface.h:57:13: error: ‘JsonMapValue’ does not name a type
  112. virtual JsonMapValue* mapCreateElement(std::string* k,JsonValue* val) = 0;
  113. ^
  114. In file included from ParserShiftReduce.y:9:0:
  115. ParserInterface.h:84:39: error: ‘mapCreate’ declared as a ‘virtual’ field
  116. virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
  117. ^
  118. ParserInterface.h:84:29: error: expected ‘;’ at end of member declaration
  119. virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
  120. ^
  121. ParserInterface.h:84:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParseLogInterface::mapCreate’ conflicts with a previous declaration
  122. virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
  123. ^
  124. ParserInterface.h:83:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParseLogInterface::mapCreate()’
  125. virtual JsonMap* mapCreate() {std::cout << "JsonMapValueListOpt: EMPTY\n"; return NULL;}
  126. ^
  127. ParserInterface.h:84:51: error: expected ‘)’ before ‘*’ token
  128. virtual JsonMap* mapCreate(JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValue\n"; return NULL;}
  129. ^
  130. ParserInterface.h:85:49: error: ‘JsonMapValue’ has not been declared
  131. virtual JsonMap* mapAppend(JsonMap*, JsonMapValue*) {std::cout << "JsonMapValueList: JsonMapValueList , JsonMapValue\n"; return NULL;}
  132. ^
  133. ParserInterface.h:86:13: error: ‘JsonMapValue’ does not name a type
  134. virtual JsonMapValue* mapCreateElement(std::string*,JsonValue*) {std::cout << "JsonMapValue: JSON_STRING : JsonValue\n"; return NULL;}
  135. ^
  136. ParserInterface.h:113:39: error: ‘mapCreate’ declared as a ‘virtual’ field
  137. virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
  138. ^
  139. ParserInterface.h:113:29: error: expected ‘;’ at end of member declaration
  140. virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
  141. ^
  142. ParserInterface.h:113:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserCleanInterface::mapCreate’ conflicts with a previous declaration
  143. virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
  144. ^
  145. ParserInterface.h:112:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserCleanInterface::mapCreate()’
  146. virtual JsonMap* mapCreate() { return NULL;}
  147. ^
  148. ParserInterface.h:113:51: error: expected ‘)’ before ‘*’ token
  149. virtual JsonMap* mapCreate(JsonMapValue* val) { delete val; return NULL;}
  150. ^
  151. ParserInterface.h:114:53: error: ‘JsonMapValue’ has not been declared
  152. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
  153. ^
  154. ParserInterface.h:115:13: error: ‘JsonMapValue’ does not name a type
  155. virtual JsonMapValue* mapCreateElement(std::string* k,JsonValue* val) { std::unique_ptr<JsonValue> aval(val); delete k; return NULL;}
  156. ^
  157. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserCleanInterface::mapAppend(ThorsAnvil::Json::JsonMap*, int*)’:
  158. ParserInterface.h:114:83: error: ‘unique_ptr’ is not a member of ‘std’
  159. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
  160. ^
  161. ParserInterface.h:114:99: error: ‘JsonMapValue’ was not declared in this scope
  162. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
  163. ^
  164. ParserInterface.h:114:121: error: ‘aval’ was not declared in this scope
  165. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue> aval(val); delete map; return NULL;}
  166. ^
  167. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserCleanInterface::arrayAppend(ThorsAnvil::Json::JsonArray*, ThorsAnvil::Json::JsonValue*)’:
  168. ParserInterface.h:121:83: error: ‘unique_ptr’ is not a member of ‘std’
  169. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonArray> aarr(arr); delete val; return NULL;}
  170. ^
  171. ParserInterface.h:121:108: error: expected primary-expression before ‘>’ token
  172. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonArray> aarr(arr); delete val; return NULL;}
  173. ^
  174. ParserInterface.h:121:118: error: ‘aarr’ was not declared in this scope
  175. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonArray> aarr(arr); delete val; return NULL;}
  176. ^
  177. ParserInterface.h: At global scope:
  178. ParserInterface.h:137:39: error: ‘mapCreate’ declared as a ‘virtual’ field
  179. virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
  180. ^
  181. ParserInterface.h:137:29: error: expected ‘;’ at end of member declaration
  182. virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
  183. ^
  184. ParserInterface.h:137:39: error: ‘ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapCreate’ conflicts with a previous declaration
  185. virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
  186. ^
  187. ParserInterface.h:136:29: note: previous declaration ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapCreate()’
  188. virtual JsonMap* mapCreate() { return new JsonMap();}
  189. ^
  190. ParserInterface.h:137:51: error: expected ‘)’ before ‘*’ token
  191. virtual JsonMap* mapCreate(JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(new JsonMap());amap->insert(*(aval->first), aval->second.release());return amap.release();}
  192. ^
  193. ParserInterface.h:138:53: error: ‘JsonMapValue’ has not been declared
  194. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
  195. ^
  196. ParserInterface.h:139:13: error: ‘JsonMapValue’ does not name a type
  197. virtual JsonMapValue* mapCreateElement(std::string* k,JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<std::string> ak(k);
  198. ^
  199. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonMap* ThorsAnvil::Json::ParserDomInterface::mapAppend(ThorsAnvil::Json::JsonMap*, int*)’:
  200. ParserInterface.h:138:83: error: ‘unique_ptr’ is not a member of ‘std’
  201. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
  202. ^
  203. ParserInterface.h:138:99: error: ‘JsonMapValue’ was not declared in this scope
  204. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
  205. ^
  206. ParserInterface.h:138:120: error: ‘aval’ was not declared in this scope
  207. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
  208. ^
  209. ParserInterface.h:138:122: error: ‘unique_ptr’ is not a member of ‘std’
  210. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
  211. ^
  212. ParserInterface.h:138:145: error: expected primary-expression before ‘>’ token
  213. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
  214. ^
  215. ParserInterface.h:138:155: error: ‘amap’ was not declared in this scope
  216. virtual JsonMap* mapAppend(JsonMap* map, JsonMapValue* val) { std::unique_ptr<JsonMapValue>aval(val);std::unique_ptr<JsonMap> amap(map); amap->insert(*(aval->first), aval->second.release());return amap.release();}
  217. ^
  218. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserDomInterface::arrayCreate(ThorsAnvil::Json::JsonValue*)’:
  219. ParserInterface.h:145:83: error: ‘unique_ptr’ is not a member of ‘std’
  220. virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
  221. ^
  222. ParserInterface.h:145:108: error: expected primary-expression before ‘>’ token
  223. virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
  224. ^
  225. ParserInterface.h:145:119: error: ‘aval’ was not declared in this scope
  226. virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
  227. ^
  228. ParserInterface.h:145:121: error: ‘unique_ptr’ is not a member of ‘std’
  229. virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
  230. ^
  231. ParserInterface.h:145:146: error: expected primary-expression before ‘>’ token
  232. virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
  233. ^
  234. ParserInterface.h:145:170: error: ‘aarr’ was not declared in this scope
  235. virtual JsonArray* arrayCreate(JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(new JsonArray());aarr->push_back(aval.release()); return aarr.release();}
  236. ^
  237. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonArray* ThorsAnvil::Json::ParserDomInterface::arrayAppend(ThorsAnvil::Json::JsonArray*, ThorsAnvil::Json::JsonValue*)’:
  238. ParserInterface.h:146:83: error: ‘unique_ptr’ is not a member of ‘std’
  239. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
  240. ^
  241. ParserInterface.h:146:108: error: expected primary-expression before ‘>’ token
  242. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
  243. ^
  244. ParserInterface.h:146:119: error: ‘aval’ was not declared in this scope
  245. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
  246. ^
  247. ParserInterface.h:146:121: error: ‘unique_ptr’ is not a member of ‘std’
  248. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
  249. ^
  250. ParserInterface.h:146:146: error: expected primary-expression before ‘>’ token
  251. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
  252. ^
  253. ParserInterface.h:146:158: error: ‘aarr’ was not declared in this scope
  254. virtual JsonArray* arrayAppend(JsonArray* arr, JsonValue* val) { std::unique_ptr<JsonValue> aval(val);std::unique_ptr<JsonArray> aarr(arr); aarr->push_back(aval.release()); return aarr.release();}
  255. ^
  256. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::arrayCreateElement(ThorsAnvil::Json::JsonValue*)’:
  257. ParserInterface.h:148:83: error: ‘unique_ptr’ is not a member of ‘std’
  258. virtual JsonValue* arrayCreateElement(JsonValue* val) { std::unique_ptr<JsonValue> aval(val); return aval.release();}
  259. ^
  260. ParserInterface.h:148:108: error: expected primary-expression before ‘>’ token
  261. virtual JsonValue* arrayCreateElement(JsonValue* val) { std::unique_ptr<JsonValue> aval(val); return aval.release();}
  262. ^
  263. ParserInterface.h:148:119: error: ‘aval’ was not declared in this scope
  264. virtual JsonValue* arrayCreateElement(JsonValue* val) { std::unique_ptr<JsonValue> aval(val); return aval.release();}
  265. ^
  266. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseMap(ThorsAnvil::Json::JsonMap*)’:
  267. ParserInterface.h:150:83: error: ‘unique_ptr’ is not a member of ‘std’
  268. virtual JsonValue* valueParseMap(JsonMap* map) { std::unique_ptr<JsonMap> amap(map); return new JsonMapItem(amap);}
  269. ^
  270. ParserInterface.h:150:106: error: expected primary-expression before ‘>’ token
  271. virtual JsonValue* valueParseMap(JsonMap* map) { std::unique_ptr<JsonMap> amap(map); return new JsonMapItem(amap);}
  272. ^
  273. ParserInterface.h:150:120: error: ‘amap’ was not declared in this scope
  274. virtual JsonValue* valueParseMap(JsonMap* map) { std::unique_ptr<JsonMap> amap(map); return new JsonMapItem(amap);}
  275. ^
  276. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseArray(ThorsAnvil::Json::JsonArray*)’:
  277. ParserInterface.h:151:83: error: ‘unique_ptr’ is not a member of ‘std’
  278. virtual JsonValue* valueParseArray(JsonArray* arr) { std::unique_ptr<JsonArray> aarr(arr); return new JsonArrayItem(aarr);}
  279. ^
  280. ParserInterface.h:151:108: error: expected primary-expression before ‘>’ token
  281. virtual JsonValue* valueParseArray(JsonArray* arr) { std::unique_ptr<JsonArray> aarr(arr); return new JsonArrayItem(aarr);}
  282. ^
  283. ParserInterface.h:151:120: error: ‘aarr’ was not declared in this scope
  284. virtual JsonValue* valueParseArray(JsonArray* arr) { std::unique_ptr<JsonArray> aarr(arr); return new JsonArrayItem(aarr);}
  285. ^
  286. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseString(std::string*)’:
  287. ParserInterface.h:152:83: error: ‘unique_ptr’ is not a member of ‘std’
  288. virtual JsonValue* valueParseString(std::string* str) { std::unique_ptr<std::string> astr(str); return new JsonStringItem(astr);}
  289. ^
  290. ParserInterface.h:152:110: error: expected primary-expression before ‘>’ token
  291. virtual JsonValue* valueParseString(std::string* str) { std::unique_ptr<std::string> astr(str); return new JsonStringItem(astr);}
  292. ^
  293. ParserInterface.h:152:120: error: ‘astr’ was not declared in this scope
  294. virtual JsonValue* valueParseString(std::string* str) { std::unique_ptr<std::string> astr(str); return new JsonStringItem(astr);}
  295. ^
  296. ParserInterface.h: In member function ‘virtual ThorsAnvil::Json::JsonValue* ThorsAnvil::Json::ParserDomInterface::valueParseNumber(std::string*)’:
  297. ParserInterface.h:153:83: error: ‘unique_ptr’ is not a member of ‘std’
  298. virtual JsonValue* valueParseNumber(std::string* num) { std::unique_ptr<std::string> anum(num); return new JsonNumberItem(anum);}
  299. ^
  300. ParserInterface.h:153:110: error: expected primary-expression before ‘>’ token
  301. virtual JsonValue* valueParseNumber(std::string* num) { std::unique_ptr<std::string> anum(num); return new JsonNumberItem(anum);}
  302. ^
  303. ParserInterface.h:153:120: error: ‘anum’ was not declared in this scope
  304. virtual JsonValue* valueParseNumber(std::string* num) { std::unique_ptr<std::string> anum(num); return new JsonNumberItem(anum);}
  305. ^
  306. ParserShiftReduce.y: At global scope:
  307. ParserShiftReduce.y:19:25: error: ‘ThorsAnvil::Json::JsonMapValue’ has not been declared
  308. using ThorsAnvil::Json::JsonMapValue;
  309. ^
  310. In file included from ParserShiftReduce.tab.cpp:63:0:
  311. ParserShiftReduce.y:33:5: error: ‘JsonMapValue’ does not name a type
  312. JsonMapValue* jsonMapValue;
  313. ^
  314. ParserShiftReduce.y: In member function ‘virtual int yy::ParserShiftReduce::parse()’:
  315. ParserShiftReduce.y:73:62: error: ‘union yy::ParserShiftReduce::semantic_type’ has no member named ‘jsonMapValue’
  316. JsonMapValueList : JsonMapValue {$$ = pi.mapCreate($1);}
  317. ^
  318. ParserShiftReduce.y:74:91: error: ‘union yy::ParserShiftReduce::semantic_type’ has no member named ‘jsonMapValue’
  319. | JsonMapValueList ',' JsonMapValue {$$ = pi.mapAppend($1, $3);}
  320. ^
  321. ParserShiftReduce.y:75:19: error: ‘union yy::ParserShiftReduce::semantic_type’ has no member named ‘jsonMapValue’
  322. JsonMapValue : JsonMapKey JsonValue {$$ = pi.mapCreateElement($1, $2);}
  323. ^
  324. ParserShiftReduce.y:75:38: error: ‘struct ThorsAnvil::Json::ParserInterface’ has no member named ‘mapCreateElement’
  325. JsonMapValue : JsonMapKey JsonValue {$$ = pi.mapCreateElement($1, $2);}
  326. ^
  327. ParserShiftReduce.y: At global scope:
  328. ParserShiftReduce.y:111:48: error: variable or field ‘error’ declared void
  329. void yy::ParserShiftReduce::error(yy::location const&, std::string const& msg)
  330. ^
  331. ParserShiftReduce.y:111:35: error: ‘location’ is not a member of ‘yy’
  332. void yy::ParserShiftReduce::error(yy::location const&, std::string const& msg)
  333. ^
  334. ParserShiftReduce.y:111:68: error: expected primary-expression before ‘const’
  335. void yy::ParserShiftReduce::error(yy::location const&, std::string const& msg)
  336. ^
  337. cc1plus: error: unrecognized command line option "-Wno-deprecated-register" [-Werror]
  338. cc1plus: all warnings being treated as errors
  339. make[2]: Leaving directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
  340. make[1]: Leaving directory `/home/adminuser/Downloads/new/ThorsSerializer/Json'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement