File tree 2 files changed +41
-6
lines changed
2 files changed +41
-6
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,8 @@ class MRDOX_DECL
152
152
Array : public Any
153
153
{
154
154
public:
155
- virtual std::size_t length () const noexcept = 0 ;
156
- virtual Value get (std::size_t ) const = 0 ;
155
+ virtual std::size_t length () const noexcept ;
156
+ virtual Value get (std::size_t ) const ;
157
157
};
158
158
159
159
using ArrayPtr = Pointer<Array>;
@@ -165,8 +165,8 @@ class MRDOX_DECL
165
165
{
166
166
public:
167
167
virtual bool empty () const noexcept ;
168
- virtual Value get (std::string_view) const = 0 ;
169
- virtual std::vector<std::string_view> props () const = 0 ;
168
+ virtual Value get (std::string_view) const ;
169
+ virtual std::vector<std::string_view> props () const ;
170
170
};
171
171
172
172
using ObjectPtr = Pointer<Object>;
Original file line number Diff line number Diff line change @@ -16,11 +16,46 @@ namespace dom {
16
16
17
17
Any::~Any () = default ;
18
18
19
- bool Object::empty () const noexcept
19
+ // ------------------------------------------------
20
+
21
+ std::size_t
22
+ Array::
23
+ length () const noexcept
24
+ {
25
+ return 0 ;
26
+ }
27
+
28
+ Value
29
+ Array::
30
+ get (std::size_t ) const
31
+ {
32
+ return nullptr ;
33
+ }
34
+
35
+ bool
36
+ Object::
37
+ empty () const noexcept
20
38
{
21
- return false ;
39
+ return true ;
22
40
}
23
41
42
+ Value
43
+ Object::
44
+ get (std::string_view) const
45
+ {
46
+ return nullptr ;
47
+ }
48
+
49
+ auto
50
+ Object::
51
+ props () const ->
52
+ std::vector<std::string_view>
53
+ {
54
+ return {};
55
+ }
56
+
57
+ // ------------------------------------------------
58
+
24
59
Value::
25
60
~Value ()
26
61
{
You can’t perform that action at this time.
0 commit comments