Re: nullptr == p_one_past_last
Frederick Gotham wrote:
Matthias Hofmann posted:
Source code portability usually ends as soon as you are calling a function
from the Windows API. Or XWindows, Gnome, KDE, MFC, DirectX... In C++, its
easy to write portable code, but hard to write portable programs.
There are portable GUI packages, portable graphics packages, etc.. Use them
and you shouldn't have a problem.
I'd be very surprised to see any such package being portable to all
confiorming implementations of C++, given that some of those
implementations are for systems where it's not even possible to
implement a GUI. Of course, the package could be set up so that when
installed on such a system, any attempt to actually use it has either
no visible result, or returns an error indication of some kind, but I
would not consider that a successful port of that package to that
system.
Howver, even to the extent that such packages are portable, there is
still non-portable code; it's just part of those packages, rather than
being explicitly part of your program.
---
[ comp.std.c++ is moderated. To submit articles, try just posting with ]
[ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]