Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is "ANSI C++"?

I've had someone tell me that C++98 was written under ANSI before being formally standardised as ISO/IEC 14882:1998.

I know that ANSI was involved with C, but I can't seem to find much in the way of proof that the phrase "ANSI C++" is terribly accurate.

  • Is "ANSI C++" a good description for C++98?
  • Is "ANSI C++" a good description for subsequent versions of the C++ standard?
like image 393
Lightness Races in Orbit Avatar asked May 02 '11 22:05

Lightness Races in Orbit


People also ask

What is difference between ANSI C and C?

C is a general-purpose programming language. C is one of the oldest currently used programming languages and is one of the most widely used programming languages. ANSI C is a set of successive standards which were published by the American National Standards Institute (ANSI) for the C programming language.

What is ANSI C function?

ANSI C provides function prototypes. This allows the compiler to check the type and number of arguments to functions, and avoids default argument promotions. To prototype functions, declare the type and name of each function in the function definition.

Is ANSI C still used?

ANSI C is a common name for the C programming language standard, and, while the document from which this name derives has long been replaced and superseded, the name is still occasionally used with the current standard.

What is ANSI C format?

An ANSI C piece of paper measures 432 × 559 mm or 17 × 22 inches. ANSI C is part of the American National Standards Institute series, with an aspect ratio of 1:1.2941.


2 Answers

Initially, in '89, the standardization of C++ was handled by ANSI X3J16. Starting in '91 ISO WG21 joined in. You may want to read BS's A History of C++: 1979-1991. IMO, "ANSI C++" is just a leftover name; the language is "ISO C++" even though ANSI is indirectly involved in the standardization.

like image 91
Erik Avatar answered Oct 22 '22 16:10

Erik


This gotw page describes the relationship of ANSI and ISO as far as C++ is concerned, briefly:

The official names of the ISO and U.S. committees are:

ISO/IEC JTC1/SC22/WG21 - C++ (ISO C++ committee)

INCITS PL22.16 - C++ (the U.S. C++ committee, often called the "ANSI C++ committee" -- although more accurately INCITS is a separate organization that is not a part of ANSI but is accredited by ANSI to develop U.S. standards) (previously called X3J16 and J16)

These two groups together are often referred to in the singular as "the C++ committee" because they meet and do their work together. The meetings are always in the same room at the same time

It sounds like the ISO standard developed by this committee automatically becomes the U.S. standard, although I am sure people who actually work in those committees can explain better.

like image 39
Cubbi Avatar answered Oct 22 '22 17:10

Cubbi