Home » Developing U++ » U++ Developers corner » Refactoring Moveable
Re: Refactoring Moveable [message #61378 is a reply to message #60777] |
Thu, 02 January 2025 21:41   |
Novo
Messages: 1430 Registered: December 2006
|
Ultimate Contributor |
|
|
A little bit of criticism.
Code below won't compile out of the box:
namespace test {
struct Test;
}
namespace test {
struct Test : Moveable<Test> {
Vector<Test> children;
};
}
Adding of
template <> inline constexpr bool is_upp_guest<test::Test> = true;
won't help.
You need to add
template <> inline constexpr bool is_trivially_relocatable<test::Test> = true;
All this stuff is inconvenient and unnatural.
And I have no idea how to make code below compile.
struct Test01;
struct Test01 {
struct Test02 : Moveable<Test02> {
Vector<Test02> children;
};
};
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Tue Aug 12 19:22:52 CEST 2025
Total time taken to generate the page: 0.06588 seconds
|