I want to rename Synchronized_Queue_Interface Enqueue entry, but don’t understand how to do it right.
with Ada.Containers.Synchronized_Queue_Interfaces;
with Ada.Containers.Unbounded_Synchronized_Queues;
package Test is
use Ada.Containers;
package Boolean_Queue_Interfaces is new Synchronized_Queue_Interfaces
(Element_Type => Boolean);
package Boolean_Queues is new Unbounded_Synchronized_Queues
(Queue_Interfaces => Boolean_Queue_Interfaces);
Queue : Boolean_Queues.Queue;
procedure Enqueue (New_Item : Boolean) renames Queue.Enqueue; -- Illegal
end Test;