Michele Caini
6030f56c76
meta: make meta_any::try_cast work with mutating this pointers
2021-09-28 18:50:03 +02:00
Michele Caini
ba89b53c63
doc: cleanup
2021-09-28 15:11:29 +02:00
Michele Caini
1bfb877a3b
entity: adds to_entity and to_version to the entt namespace (see #788 )
2021-09-28 14:52:52 +02:00
Michele Caini
72776d6fb6
entity: make return type of to_integral explicit
2021-09-28 14:31:09 +02:00
Michele Caini
7bb93420c4
storage: avoid reinventing the wheel :)
2021-09-27 08:55:50 +02:00
Michele Caini
bb1b0e0581
sparse_set: minor changes
2021-09-26 23:28:32 +02:00
Michele Caini
45ddcf0df9
sparse_set: compare allocators before moving in the move operator assignment
2021-09-26 11:08:55 +02:00
Michele Caini
9c4d7a286f
memory: avoid warnings due to unused parameters
2021-09-26 11:06:36 +02:00
Michele Caini
7b290b43b5
sparse_set: try not to reinvent the wheel :)
2021-09-26 10:59:00 +02:00
Michele Caini
2e2782b030
sparse_set: partial sorting not supported in case of tombstones
2021-09-25 18:29:45 +02:00
Michele Caini
48f23bd1ba
doc: cleanup
2021-09-24 16:22:42 +02:00
Michele Caini
3ece33b26a
any: avoid using addressof on the result of an operator assignment without a good reason :)
2021-09-24 13:29:16 +02:00
Michele Caini
efa98379b0
meta: internal changes and cleanup
2021-09-24 12:49:43 +02:00
Michele Caini
324aeba70f
meta: suppress a warning due to -Wignored-qualifiers ( close #785 )
2021-09-24 11:50:51 +02:00
Michele Caini
7b6715c7b5
test: code coverage for the storage class for empty types
2021-09-24 11:18:11 +02:00
Michele Caini
1ea392b6c9
test: minor changes to suppress a bunch of warnings + formatting
2021-09-24 10:19:13 +02:00
Michele Caini
8b1a3849e6
meta_any: support assigning the value wrapped by a meta_any
2021-09-24 10:08:59 +02:00
Michele Caini
e1d7e98c92
any: minor changes
2021-09-23 10:36:30 +02:00
Michele Caini
04b2e1152c
any:
...
* when moving fails, try to copy anyway as a fallback
* code coverage
2021-09-22 17:13:02 +02:00
Michele Caini
d392eba4a0
test: code coverage
2021-09-22 16:49:42 +02:00
Michele Caini
799dec4f1c
sparse_set: suppress a warning due to -Wreorder
2021-09-22 16:41:40 +02:00
Michele Caini
11df6ec927
type_id: cannot have a static variable in a constexpr function (right msvc?)
2021-09-22 16:38:41 +02:00
Michele Caini
03e363f5d9
any: added the ::assign function to copy/move assign the wrapped variable
2021-09-22 16:27:56 +02:00
Michele Caini
39211889b0
any ( close #782 ):
...
* make const type_info * a first citizen
* further reduce vtable size
2021-09-22 12:48:25 +02:00
Michele Caini
db44549276
type_info/type_id:
...
* type_info is no longer default constructible
* users cannot construct type_info objects anymore
* make type_id refer to an object with static storage duration
2021-09-22 12:41:09 +02:00
Michele Caini
49e702c0c7
hashed_string: minor changes
2021-09-22 08:34:31 +02:00
Michele Caini
c9c5214b3e
type_info: operator<, operator<=, operator> and operator>=
2021-09-22 08:34:18 +02:00
Michele Caini
24a537d154
meta: review conversion_helper for meta type nodes
2021-09-21 17:11:28 +02:00
Michele Caini
c32ecf171b
sparse_set: added user_data field
2021-09-21 15:54:26 +02:00
Michele Caini
a62ae21628
any: const reference instead of pointer as default argument to ::data
2021-09-21 09:03:39 +02:00
Michele Caini
12f05e8f72
doc: fixed typo ( close #784 )
2021-09-20 08:07:05 +02:00
Michele Caini
81fb727d20
registry: improved ctx and the like ( close #782 )
2021-09-19 15:14:43 +02:00
Michele Caini
e7655c761d
test: code coverage
2021-09-18 23:22:00 +02:00
Michele Caini
464fcf4300
test: fix a test that I've broken a couple of commits ago :)
2021-09-18 00:06:50 +02:00
Michele Caini
73b67ea9df
*: review enums
2021-09-18 00:02:35 +02:00
Michele Caini
04a9c80c14
*: removed pointless continue;
2021-09-17 23:44:15 +02:00
Michele Caini
80b5ed3d22
introduced clang-format ( close #733 )
2021-09-17 23:42:43 +02:00
Michele Caini
be5ad379b6
*: another handful of changes to please clang-format
2021-09-17 17:21:26 +02:00
Michele Caini
13d901fbfa
*: a handful of changes to please clang-format
2021-09-17 16:43:15 +02:00
Michele Caini
f7e7273e91
*: minor changes
2021-09-16 23:09:22 +02:00
Michele Caini
4b3bd265a6
meta: minor changes
2021-09-15 12:43:31 +02:00
Michele Caini
42dcec961b
meta: support for multi-setters on meta data members
2021-09-15 09:32:12 +02:00
Michele Caini
6b2a3b2916
meta: prepare for multi-setters on meta data members
2021-09-14 14:57:17 +02:00
Michele Caini
930f9ca436
any: minor changes
2021-09-14 08:52:44 +02:00
Michele Caini
a96a767b9b
test: code coverage
2021-09-13 19:32:23 +02:00
Michele Caini
36627dbe78
meta:
...
* removed meta_ctor, no alternatives provided
* removed meta_type::ctor overloads, no alternatives provided
2021-09-13 19:03:22 +02:00
Michele Caini
f86bc31cbb
meta: shared lookup function to avoid unnecessary casts when searching for a meta constructor
2021-09-13 16:37:58 +02:00
Michele Caini
4a08ca4b5e
meta: minor changes
2021-09-13 14:58:08 +02:00
Michele Caini
e857aa0640
meta: extrapolate can_cast_or_convert
2021-09-13 12:57:06 +02:00
Michele Caini
d3c98ad334
meta_factory: cleanup
2021-09-13 12:56:39 +02:00