Re: [Opalvoip-devel] PTLib possible error
Brought to you by:
csoutheren,
rjongbloed
From: Robert J. <ro...@vo...> - 2016-10-22 17:12:58
|
What is the purpose of an enum with one value? Seems rather pointless to me. ---------- Robert Jongbloed Vox Lucida Pty. Ltd. > On 10 Oct 2016, at 3:52 PM, Елена Валынец <len...@ya...> wrote: > > Hello! > I'm using PTLib 2.16.2. > > P_DECLARE_STREAMABLE_ENUM macro generates incorrect code when I declare enum with only one member > > P_DECLARE_STREAMABLE_ENUM(Pragmas, open_mode); > > gives to me > > enum Pragmas > { open_mode = 0 > , BeginPragmas = open_mode > , //< incorrect here! > , EndPragmas > , NumPragmas = EndPragmas - BeginPragmas}; > > friend __inline Pragmas operator++(Pragmas & e ) .... > > Best regards, Elena Valynets. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Opalvoip-devel mailing list > Opa...@li... > https://lists.sourceforge.net/lists/listinfo/opalvoip-devel |