<NME> serde.h
<BEF> /*******************************
Copyright (c) 2016-2022 Grégoire Angerand

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
**********************************/
#ifndef Y_SERDE3_SERDE_H
#define Y_SERDE3_SERDE_H

#include <y/reflect/reflect.h>

namespace y {
namespace serde3 {

using namespace reflect;

class WritableArchive;
class ReadableArchive;

#define y_no_serde3()           static constexpr bool _y_serde3_no_serde = true;
#define y_no_serde3_expr(expr)  static constexpr bool _y_serde3_no_serde = (expr);

}
}

#endif // Y_SERDE3_SERDE_H

}




template<typename T>
struct NamedObject {
	T& object;




#define y_serde3_create_item(object) y::serde3::NamedObject{object, #object},

#define y_serde3_refl_qual(qual, ...) constexpr auto _y_serde3_refl() qual { return std::tuple{Y_REC_MACRO(Y_MACRO_MAP(y_serde3_create_item, __VA_ARGS__))}; }
	y_serde3_refl_qual(const, __VA_ARGS__)


}
}


<MSG> serde3 poly stuff

<DFF> @@ -54,8 +54,6 @@ constexpr usize member_count() {
 }
 
 
-
-
 template<typename T>
 struct NamedObject {
 	T& object;
@@ -70,7 +68,6 @@ NamedObject(T&, std::string_view) -> NamedObject<T>;
 
 
 
-
 #define y_serde3_create_item(object) y::serde3::NamedObject{object, #object},
 
 #define y_serde3_refl_qual(qual, ...) constexpr auto _y_serde3_refl() qual { return std::tuple{Y_REC_MACRO(Y_MACRO_MAP(y_serde3_create_item, __VA_ARGS__))}; }
@@ -81,6 +78,7 @@ NamedObject(T&, std::string_view) -> NamedObject<T>;
 	y_serde3_refl_qual(const, __VA_ARGS__)
 
 
+
 }
 }
 

serde3 poly stuff