Advertisement
dominus

Untitled

Apr 10th, 2022
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 KB | None | 0 0
  1. In file included from u7shp.cc:16:
  2. In file included from ../files/databuf.h:29:
  3. ../files/U7obj.h:42:6: error: function definition does not declare parameters
  4. int index{-1};
  5. ^
  6. ../files/U7obj.h:46:14: error: member initializer 'index' does not name a non-static data member or base class
  7. : name(n), index(i) {}
  8. ^~~~~~~~
  9. ../files/U7obj.h:49:25: error: member initializer 'index' does not name a non-static data member or base class
  10. : name(std::move(n)), index(i) {}
  11. ^~~~~~~~
  12. ../files/U7obj.h:52:48: error: no member named 'index' in 'File_spec'
  13. return cmp < 0 || (cmp == 0 && index < other.index);
  14. ~~~~~ ^
  15. ../files/U7obj.h:76:21: error: expected ';' at end of declaration list
  16. virtual ~U7object() noexcept = default;
  17. ^
  18. ;
  19. ../files/U7obj.h:116:18: error: expected ';' at end of declaration list
  20. ~U7multiobject() noexcept final = default;
  21. ^
  22. ;
  23. In file included from u7shp.cc:16:
  24. In file included from ../files/databuf.h:30:
  25. ../files/utils.h:479:15: error: expected expression
  26. auto two = [](auto c) {return 1U << c;};
  27. ^
  28. ../files/utils.h:480:15: error: expected expression
  29. auto mask = [&](auto c) {return static_cast<uint8>(std::numeric_limits<uint8>::max() / (two(two(c)) + 1U));};
  30. ^
  31. ../files/utils.h:481:15: error: expected expression
  32. auto count = [&](auto x, auto c) {return (x & mask(c)) + ((x >> two(c)) & mask(c));};
  33. ^
  34. In file included from u7shp.cc:16:
  35. ../files/databuf.h:42:28: error: expected ';' at end of declaration list
  36. IDataSource(IDataSource&&) noexcept = default;
  37. ^
  38. ;
  39. ../files/databuf.h:43:39: error: expected ';' at end of declaration list
  40. IDataSource& operator=(IDataSource&&) noexcept = default;
  41. ^
  42. ;
  43. ../files/databuf.h:44:24: error: expected ';' at end of declaration list
  44. virtual ~IDataSource() noexcept = default;
  45. ^
  46. ;
  47. ../files/databuf.h:56:19: error: no member named 'make_unique' in namespace 'std'
  48. auto ptr = std::make_unique<unsigned char[]>(N);
  49. ~~~~~^
  50. ../files/databuf.h:56:40: error: expected '(' for function-style cast or type construction
  51. auto ptr = std::make_unique<unsigned char[]>(N);
  52. ~~~~~~~~ ^
  53. ../files/databuf.h:208:5: error: delegating constructors are permitted only in C++11
  54. : IBufferDataView(data_.get(), len) {
  55. ^~~~~~~~~~~~~~~
  56. ../files/databuf.h:295:2: error: 'auto' not allowed in function return type
  57. auto steal_data(size_t& len) {
  58. ^~~~
  59. ../files/databuf.h:297:10: error: no viable conversion from returned value of type 'typename remove_reference<unique_ptr<unsigned char []> &>::type' (aka 'std::unique_ptr<unsigned char []>') to function return type 'int'
  60. return std::move(data);
  61. ^~~~~~~~~~~~~~~
  62. ../files/databuf.h:308:5: error: call to constructor of 'IBufferDataSource' is ambiguous
  63. : IBufferDataSource(nullptr, 0) {
  64. ^ ~~~~~~~~~~
  65. ../files/databuf.h:289:2: note: candidate constructor
  66. IBufferDataSource(void *data_, size_t len)
  67. ^
  68. ../files/databuf.h:292:2: note: candidate constructor
  69. IBufferDataSource(std::unique_ptr<unsigned char[]> data_, size_t len)
  70. ^
  71. ../files/databuf.h:315:5: error: call to constructor of 'IBufferDataSource' is ambiguous
  72. : IBufferDataSource(nullptr, 0) {
  73. ^ ~~~~~~~~~~
  74. ../files/databuf.h:289:2: note: candidate constructor
  75. IBufferDataSource(void *data_, size_t len)
  76. ^
  77. ../files/databuf.h:292:2: note: candidate constructor
  78. IBufferDataSource(std::unique_ptr<unsigned char[]> data_, size_t len)
  79. ^
  80. fatal error: too many errors emitted, stopping now [-ferror-limit=]
  81.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement