On Jul 17, 11:45 am, "Vince C." <n...@hotmail.com> wrote:
> red floyd wrote:
> > Unfortunately, Vince, getopt_long() is not part of the C++ standard
> > (ISO/IEC 14882:1998 or 14882:2003), and as such, is off-topic here.
> > However, I would recommend you ask in gnu.g++.help, where it would be
> > on-topic.
> >> [code redacted]
> Sorry, I thought comp.std.c++ was about C++ standards and comp.lang.c++
> about everything else.
comp.std.c++ is about the C++ standard itself. comp.lang.c++ is
about everything that concerns C++ in general, but excludes
platform and implementation specific issues. The distinction
isn't always very clear. Discussion about threading in C++ is
certainly relevant, but basic threading algorithms aren't, nor
are details of a platform-specific threading API. The classic
"test" is that if the answer would be more or less the same for
most platforms, but different for a different language, the post
belongs here, but if the answer would be more or less the same
for different languages, but different for different platforms,
it's off topic. But of course, that test supposes that you know
the answer before posing the question

.
In this case, getopts_long is very much 1) a GNUism, and 2)
available in C and (probably) in other languages as well.
Questions about how best to encapsulate it in a C++ class (or
whether there exist C++ alternatives) would probably be on
topic, but that's about it.
--
James Kanze (GABI Software) email:
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34