comp.lang.ada
 help / color / mirror / Atom feed
From: jakub.dabek@gmail.com
Subject: How to access Vector.Index_Type?
Date: Sun, 17 Mar 2019 13:43:36 -0700 (PDT)
Date: 2019-03-17T13:43:36-07:00	[thread overview]
Message-ID: <a0a952ea-0eb7-4129-8c19-87c9f4c7db2d@googlegroups.com> (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`?

             reply	other threads:[~2019-03-17 20:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-17 20:43 jakub.dabek [this message]
2019-03-17 21:25 ` How to access Vector.Index_Type? 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
replies disabled

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