Changeset 0210a543
- Timestamp:
- Dec 17, 2025, 12:59:50 PM (3 days ago)
- Branches:
- master
- Children:
- eb0d9b7
- Parents:
- 5d300ba
- File:
-
- 1 edited
-
libcfa/src/collections/array.hfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/collections/array.hfa
r5d300ba r0210a543 69 69 // types like size_t. So trying to overload on ptrdiff_t vs int works in 64-bit mode 70 70 // but not in 32-bit mode. 71 // - Given bug of Trac #247, CFA gives sizeof expressions type unsigned long int, when it 72 // should give them type size_t. 73 // 74 // gcc -m32 cfa -m32 given bug gcc -m64 (and cfa) 75 // ptrdiff_t int int long int 76 // size_t unsigned int unsigned int unsigned long int 77 // typeof( sizeof(42) ) unsigned int unsigned long int unsigned long int 78 // int int int int 71 // 72 // cfa -m32 (and gcc) cfa -m64 (and gcc) 73 // ptrdiff_t int long int 74 // size_t unsigned int unsigned long int 75 // typeof( sizeof(42) ) unsigned int unsigned long int 76 // int int int 79 77 // 80 78 // So the solution must support types {zero_t, one_t, int, unsigned int, long int, unsigned long int} … … 83 81 // because assertion satisfaction requires types to match exacly. Both higher-dimensional 84 82 // subscripting and operations on slices use asserted subscript operators. The test case 85 // array-co ntainer/array-sbscr-cases covers the combinations. Mike beleives that commenting out83 // array-collections/array-sbscr-types covers the combinations. Mike beleives that commenting out 86 84 // any of the current overloads leads to one of those cases failing, either on 64- or 32-bit. 87 85 // Mike is open to being shown a smaller set of overloads that still passes the test. 86 88 87 89 88 static inline Timmed & ?[?]( arpk( N, S, Timmed, Tbase ) & a, zero_t ) {
Note:
See TracChangeset
for help on using the changeset viewer.