Differences From Artifact [f137970892]:
- File src/natools-constant_indefinite_ordered_maps.ads — part of check-in [c0a78f48d7] at 2015-03-17 22:06:18 on branch trunk — constant_indefinite_ordered_maps: add constructors that provide mutation semantics (user: nat, size: 17153) [annotate] [blame] [check-ins using]
To Artifact [d685925596]:
- File
src/natools-constant_indefinite_ordered_maps.ads
— part of check-in
[bfb15a00ff]
at
2015-08-26 17:27:29
on branch trunk
— constant_indefinite_ordered_maps: work around a regression in newer GNAT versions
For some reason GNAT 5.2 can't find Constant_Reference anymore, so creating new primitive functions so user-defined indexing still works. (user: nat, size: 17480) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
245 246 247 248 249 250 251 | function Delete (Source : in Constant_Map; Position : in Cursor) return Constant_Map; type Updatable_Map is new Constant_Map with private | | > > > > > > > > > > | 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 | function Delete (Source : in Constant_Map; Position : in Cursor) return Constant_Map; type Updatable_Map is new Constant_Map with private with Constant_Indexing => Constant_Reference_For_Bugged_GNAT, Variable_Indexing => Reference, Default_Iterator => Iterate, Iterator_Element => Element_Type; pragma Preelaborable_Initialization (Updatable_Map); function Constant_Reference_For_Bugged_GNAT (Container : aliased in Updatable_Map; Position : in Cursor) return Constant_Reference_Type; function Constant_Reference_For_Bugged_GNAT (Container : aliased in Updatable_Map; Key : in Key_Type) return Constant_Reference_Type; procedure Update_Element (Container : in out Updatable_Map; Position : in Cursor; Process : not null access procedure (Key : in Key_Type; Element : in out Element_Type)) with Pre => (Has_Element (Position) or else raise Constraint_Error) |
︙ | ︙ |