comp.lang.ada
 help / color / mirror / Atom feed
* How to access Vector.Index_Type?
@ 2019-03-17 20:43 jakub.dabek
  2019-03-17 21:25 ` Simon Wright
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: jakub.dabek @ 2019-03-17 20:43 UTC (permalink / raw)


I have the following program 

    with Ada.Containers.Vectors;

    procedure Test is
        package MyVec is new Ada.Containers.Vectors(Natural, Natural);
        Var : MyVec.Index_Type;
    begin
        null;
    end;

I get the following error:  
"Index_Type" is not a visible entity of "MyVec"  

How can I access the index type (`Element_Type` gives the same error message), without just writing `Natural`?

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2019-03-18 23:01 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-17 20:43 How to access Vector.Index_Type? jakub.dabek
2019-03-17 21:25 ` Simon Wright
2019-03-18  0:12   ` jakub.dabek
2019-03-18  8:21     ` Simon Wright
2019-03-18  4:17 ` gautier_niouzes
2019-03-18  5:27 ` J-P. Rosen
2019-03-18  8:31   ` Dmitry A. Kazakov
2019-03-18 20:59     ` briot.emmanuel
2019-03-18 23:01       ` J-P. Rosen
2019-03-18 19:35 ` Jeffrey R. Carter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox