Topic: Defect Report: static function declarations at namespace scope should be deprecated


Author: "Darin Adler" <darin@bentspoon.com>
Date: 1999/09/08
Raw View
[ moderator's note: forwarded to C++ committee. -sdc ]

Section D.2 [depr.static] of the standard says, "The use of the static
keyword is deprecated when declaring objects in namespace scope."

Section 1.8 [depr.object] of the standard says that a function is not an
object.

I believe that the intent was to deprecate using the static keyword to
declare functions in namespace scope as well, but the wording of the
standard does not do that.

    -- Darin


[ 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://reality.sgi.com/austern_mti/std-c++/faq.html              ]