Questions tagged [iso]

The International Organization for Standardization is a union of national standardization organizations out of more than 150 countries elaborating standards in nearly all sectors excepted electrics and telecommunications.

1064 questions
25
votes
5 answers

Does the C++ standard specify that for some cases the compiling should fail with an error?

I'm checking the standard about narrowing conversion, and I think for a narrowing conversion an error should be triggered. Because the standard says: [ Note: As indicated above, such conversions are not allowed at the top level in…
songyuanyao
  • 169,198
  • 16
  • 310
  • 405
24
votes
3 answers

Warning: this decimal constant is unsigned only in ISO C90

Piece of code : long rangeVar = 0; rangeVar = atol(p_value); if (rangeVar >= -2147483648 && rangeVar <= 2147483647) On compiling I get: warning: this decimal constant is unsigned only in ISO C90 Thanks in Advance
user1227514
  • 241
  • 1
  • 2
  • 5
24
votes
3 answers

Can I read the C++ 2011 FDIS anywhere?

I probably can't, but I really would like to. Can I read the C++ 2011 FDIS anywhere?
user34537
24
votes
3 answers

Where can I get/read SQL standard SQL:2011?

I'm looking for specification of SQL:2011 (ISO/IEC 9075:2011). Where can I find it? (I could find only the older one: SQL 92)
Peter Butkovic
  • 11,143
  • 10
  • 57
  • 81
23
votes
1 answer

Why a variable can't be defined twice in 2 files in C

Why can't I have int a; in 2 C files. I intend to combine both to make executable. I know from experience that I can't, but I want to find where the standard C99 says this and seal my understanding. I am reading ISO C99 standard from…
xyz
  • 8,607
  • 16
  • 66
  • 90
23
votes
1 answer

Can we apply content not explicitly cited from the normative references to the C++ standard?

In the C++11 standard(closest draft is N3337) section 1.2 Normative references says: The following referenced documents are indispensable for the application of this document. For dated references, only the edition cited applies. For undated…
Shafik Yaghmour
  • 154,301
  • 39
  • 440
  • 740
22
votes
1 answer

Why Does the New C++ Standard use "ISO/IEC 14882:2015"?

According to the ISO Web Site the new standard is named "ISO/IEC 14882:2015" rather than "ISO/IEC 14882:2014". Why is that so and will that change? There are alreadly lots of things tagged C++14, for example. In case you are interested in the…
Dietmar Kühl
  • 150,225
  • 13
  • 225
  • 380
22
votes
2 answers

error: ISO C++ forbids in-class initialization of non-const static member

this is the header file: employee.h #ifndef EMPLOYEE_H #define EMPLOYEE_H #include #include using namespace std; class Employee { public: Employee(const string &first, const string &last) Overloaded Constructor :…
mishelashala
  • 531
  • 2
  • 5
  • 12
22
votes
2 answers

Cleaner way to check if a string is ISO country of ISO language in Java

Suppose to have a two-characters String, which should represent the ISO 639 country or language name. You know, Locale class has two functions getISOLanguages and getISOCountries that return an array of String with all the ISO languages and ISO…
mat_boy
  • 12,998
  • 22
  • 72
  • 116
21
votes
2 answers

Why isn't the "noexcept" specifier part of the function type?

I don't get it why? I don't think compatibility should be a problem as functions declared without the specifier actually have it implicitly defined to false. If it's about name mangling - can we just suppose that old one (existing) will imply…
AnArrayOfFunctions
  • 3,452
  • 2
  • 29
  • 66
21
votes
3 answers

In Google Analytics, what does the locale "c" stands for?

Google Analytics displays statistics depending on user's language. I have visitors whose locale is en-us (english), fr (french), but also c. What does this c language code stands for ? I took a look at reference tables here and here but could not…
Arnaud
  • 7,259
  • 10
  • 50
  • 71
20
votes
3 answers

Load Nib for UIView used in ViewController in StoryBoard

I have a UIView that I want to use in several View Controllers so I created the view (.h/.m) and a nib file for it. In Storyboard view is added as subview to view controller but is not loading the layout as defined in nib. Is it possible to load…
tiltem
  • 4,952
  • 3
  • 23
  • 26
18
votes
2 answers

What does +0000 mean in the context of a date returned by the twitter API?

This: "Tue Jan 12 21:33:28 +0000 2010" was returned from Twitter's API. The rest are fairly obvious, but what does +0000 refer to? Is it some type of denotation of a timezone?
wwaawaw
  • 6,867
  • 9
  • 32
  • 42
17
votes
7 answers

Why is getcwd() not ISO C++ compliant?

This MSDN article states that getcwd() has been deprecated and that the ISO C++ compatible _getcwd should be used instead, which raises the question: what makes getcwd() not ISO-compliant?
Stuart P. Bentley
  • 10,195
  • 10
  • 55
  • 84
17
votes
2 answers

Why are the C# and ECMAScript ISO standards freely available, but not C/C++?

Being mostly interested in the ISO C and C++ standards, I wonder why programming language standards for ISO/IEC 23270:2006 C# and ISO/IEC 16262:2011 ECMAScript are publicly available from the ISO website, whereas standards for C and C++, and…
jotik
  • 17,044
  • 13
  • 58
  • 123
1 2
3
70 71