From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a24:2195:: with SMTP id e143mr8101501ita.18.1552855417063; Sun, 17 Mar 2019 13:43:37 -0700 (PDT) X-Received: by 2002:a9d:2c28:: with SMTP id f37mr5688507otb.126.1552855416831; Sun, 17 Mar 2019 13:43:36 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.166.216.MISMATCH!82no335112itk.0!news-out.google.com!y88ni474ita.0!nntp.google.com!82no335111itk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 17 Mar 2019 13:43:36 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=185.244.214.245; posting-account=80a9gAoAAAAlzS1O6Obn1dragG2OTguB NNTP-Posting-Host: 185.244.214.245 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: How to access Vector.Index_Type? From: jakub.dabek@gmail.com Injection-Date: Sun, 17 Mar 2019 20:43:37 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:55882 Date: 2019-03-17T13:43:36-07:00 List-Id: 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`?