Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
Novo is currently offline  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
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dynamic skin changes...
Next Topic: Broken compilation
Goto Forum:
  


Current Time: Tue Aug 12 19:22:52 CEST 2025

Total time taken to generate the page: 0.06588 seconds