Пример #1
0
	void operator()(
		rapidjson::GenericValue<Encoding, Allocator>& rjv,
		Allocator& alloc,
		T* v
	) const {
		if(bool(v)) {
			_comp(rjv, alloc, *v);
		} else {
			rjv.SetNull();
		}
	}
Пример #2
0
	void operator()(
		rapidjson::GenericValue<Encoding, Allocator>& rjv,
		Allocator&,
		std::nullptr_t
	) const { rjv.SetNull(); }