16 Commits

Author SHA1 Message Date
木头云
11973b991b refactor(uninitialized): Improve construct() overload resolution
IMPROVEMENTS:
1. Add explicit zero-argument overload to avoid SFINAE ambiguity
2. Require at least one argument (A1) for parameterized overloads
3. Better separation between direct initialization and aggregate initialization

BENEFITS:
- Clearer intent: zero-argument construction is explicitly handled
- Avoids potential SFINAE ambiguity when empty parameter pack is used
- More maintainable: easier to understand which overload is selected
- Consistent with modern C++ best practices for variadic templates

TECHNICAL DETAILS:
- Zero-arg overload: Always uses T() for value initialization
- One-or-more-arg overload: Uses SFINAE to choose between:
  * T(args...) for types with matching constructor
  * T{args...} for aggregate types or types with initializer_list ctor

This is a code quality improvement and does not fix any compilation issues,
but provides better template overload resolution.
2025-12-09 03:46:10 +00:00
mutouyun
8af5a617f0 Refactoring the generic memory allocator 2025-12-09 03:46:10 +00:00
mutouyun
af2c4898af The memory allocator supports runtime dynamic size memory allocation 2025-12-09 03:46:10 +00:00
mutouyun
3aba3a5fed Add system 2025-12-09 03:42:55 +00:00
mutouyun
8b433400f5 Add result 2025-12-09 03:42:55 +00:00
mutouyun
359e1aeba9 IPC_EXPORT => LIBIPC_EXPORT 2025-12-09 03:42:55 +00:00
mutouyun
6ce508bac9 Add log 2025-12-09 03:42:55 +00:00
mutouyun
78b1d04da4 Add error 2025-12-09 03:42:55 +00:00
mutouyun
a4b48e9a94 Added fmt support for byte 2025-12-09 03:42:55 +00:00
mutouyun
d32252b0a2 Add fmt 2025-12-09 03:42:55 +00:00
mutouyun
7f793986e0 Add codecvt 2025-12-09 03:42:55 +00:00
mutouyun
041970aa8c libimp => libipc 2025-12-09 03:42:55 +00:00
mutouyun
94cb6e6c8c Add nameof & scope_exit 2025-12-09 03:42:55 +00:00
mutouyun
838f416376 Move the export.h file to the imp directory 2025-12-09 03:42:55 +00:00
mutouyun
6831b0515c Add expected 2025-12-09 03:42:55 +00:00
mutouyun
62b9e287f7 Add imp for subsequent refactoring 2025-12-09 03:42:55 +00:00