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 » U++ Library support » U++ Core » How to mark std::array<T, N> moveable if only T is moveable
Re: How to mark std::array<T, N> moveable if only T is moveable [message #60689 is a reply to message #60688] Fri, 19 July 2024 13:52 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
mirek wrote on Fri, 19 July 2024 07:11
Same semantics does not cover U++ moveable. Now I agree it is unlikely, but so I thought about std::string until I met implementation that is not U++ moveable...


I looked into std::basic_string in this post, message #59178.

Quote:

Story of std::basic_string (GLIBCXX implementation)

It's surprising that a basic_string<ch> would cause trouble (core dump etc) when treated as raw bytes. Digging into its implementation (in <bits/basic_string.h>), we have the data members
...
.

On the same post, I proposed to use class traits to handle Moveable. There are details I could not iron out. Also, it might not be compatible with very old c++ because I have an added goal to allow non-trivially relocatable class objects, which can be corrected pre- or post relocation, be housed in std::vector or upp::Vector.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Copy the content of a SortedVectorMap
Next Topic: SMTP not working
Goto Forum:
  


Current Time: Thu Aug 07 22:06:36 CEST 2025

Total time taken to generate the page: 0.04167 seconds