Search code examples
c++syntaxdictionaryice

Nested dictionary syntax ICE C++


I have got a newbie problem with ZeroC ICE dictionary syntax. Here is what I tried and nothing seems to work.

/*What I want to make <flightNo, <hr, month day>>*/
dictionary<int, <short, short>> FlightSchedule;
dictionary<int, dictionary<short, short>> FlightSchedule;

How should I write it to be okay with the syntax?


Solution

  • Here I found the solution.

    dictionary<short, short> Time;
    dictionary<int, Time> FlightSchedule
    

    I`m wondering if there is any other solutions, because IMO syntax above is equal to:

    dictionary<int, dictionary<short, short>> FS;