This question already has answers here:
How to determine the version of the C++ standard used by the compiler?
(9 answers)
What do the values of the C++ "feature test macros" mean?
(1 answer)
Closed 3 months ago.
The community reviewed whether to reopen this question 3 months ago and left it closed:
Original close reason(s) were not resolved
I'm coming from a Java background and we learned to setup tests for the used java version when working with others, so everyne is using the same and to prevent conflicts.
Is there a way to test for the used standard? Likewise for language features you agreed on not using? Do you do this with a unit test?
Related
This question already has answers here:
Where do I find the current C or C++ standard documents?
(11 answers)
Closed 9 years ago.
I see often people here quoting sentences from the C++/C++11 standard drafts. I tried finding these drafts in the website open-std.org but I'm failing at understanding how the website is structured and where should I look for these documents.
Can anyone help me once and for all to find these documents so I can study them by myself (thus reducing the number of stupid questions here) ?
The latest draft is available in the left sidebar of the Standard C++ website. The LaTeX source is available on GitHub.
If you have the means and require it, you can purchase a copy of the latest published standard (ISO/IEC 14882:2011).
This question already has answers here:
Bignum libraries for windows?
(4 answers)
Closed 9 years ago.
Is there a library that can be implemented relatively easily in windows?
I made a few functions a while ago which used arrays of numbers to get the desired outcome. I might work at them when I get the time.
But is there any such feature already available that can be implemented into c++ easily?
Apparently people have had luck with using the GNU Multiple Precision Arithmetic Library for Windows.
This question already has answers here:
Closed 11 years ago.
The community reviewed whether to reopen this question 1 year ago and left it closed:
Original close reason(s) were not resolved
Possible Duplicate:
IPv6 parsing in C
I need to check strings if they are valid IPv6 addresses in C++.
There are elegant solutions for C# here and rather ugly regex here.
Is there a good way to do this in C++ ?
I'm currently using this, but it doesn't work on Windows XP (inet_pton() is missing):
unsigned char buf[sizeof(struct in6_addr)];
bool isvalid= inet_pton(PF_INET6, (const char *)addr, buf);
You can use getaddrinfo in Linux, or in Windows since Windows 2000. (See the section of that document page entitled "Example code using AI_NUMERICHOST")
You can use WSAStringToAddress, available since Windows 2000.
This question already has answers here:
Closed 11 years ago.
Possible Duplicates:
Modules in C++0x
why a compiler can't find a template definition in .cpp
I'm wondering if it is planned to add a Module support in C++ instead of current header system ?
I have discovered this paper : http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2316.pdf
Any news on that ?
Modules aren't in the new C++0X/C++11.
See: C++ Modules - why were they removed from C++0x? Will they be back later on?
This question already has answers here:
Cross-platform crash handler
(3 answers)
Closed 9 years ago.
Are there any cross platform crash reporters for C++ besides google-break pad? I have seen google-breakpad but it has very very limited documentation, and I have nothing seen very much mentioned here, google or other source websites
Have a look at BugTrap which might help you.