Seeing how c++11 functions are implemented [closed] - c++

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
there are some nice functionalities in c++11 however, i would like to port some of them to old c++ code, so is the source-code available of some functions? Like std::to_string ? I just would like to know how they did it.
thanks!

The implementation specifics of the C++11 spec is dependent on your choice of standard library. For example, libc++ for LLVM or libstdc++ for GCC.
You can review the source of those libraries to find what you seek. Be aware that some of the code that implements C++11 features might rely on newer language features than your target, so there's a chance that it won't be a direct copy-and-paste.
Also, remember to respect the license terms of whichever library you borrow from.

Related

Download a file in C++ (without external libraries) [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
It is possible to download a file from an URL with C++ WITHOUT ADDING external resources, like libCURL? Thanks in advance!
It sure is. But it takes a lot of time.
BTW, why don't you want to use libCURL.
Sure, because libCURL is written. What you need is to implement it yourself. Check socket programming for that.
If you read the C++ standard, there is no standard library for networking as of today. There are however plans to include such a library in future versions of the C++ standard.
SG4 (Study Group responsible for networking library) has recently set up a wiki on Github

List of things that cant be portably(Win/Linux) implemented with C++11 +Boost? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
as a zealous fan of portable C++ :) I recommended to my boss to try to implement one project with C++11 and Boost(Instead of relying on #if and OS specific stuff), and Im confident we can do it with C++11 + Boost.
Now (as a fan of generalizing:) ) Im wondering what are the things that can't be done portably with c++11 + boost.
Afaik std::atomic removes need for Interlocked*, boost has ASIO for sockets, std and boos have threads and mutexes, boost has filesystem...
EDIT: ignore reality of partial support of C++11, lets assume total C++11 compiler support.
Actually this depends on the compilers you use un Windows and in Linux.
You can check a support matrix here. With it, you will exactly know which features you will be able to use, depending on your compilers in Linux and Windows.

Does Fortran have a standard library? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
Is there a Fortran standard library (I keep hearing about something called ISO_C_BINDING, but I haven't seen anything documentation for it), and if so where is the documentation (something like http://docs.python.org/ or https://www.gnu.org/software/libc/manual/ would be helpful) ?
The Fortran standard specifies a set of "intrinsic" subroutines, which I suppose are akin to the C standard library. It's quite limited in scope, though.
Many Fortran compilers also support intrinsics beyond the ones specified by the standard. For a list of the supported intrinsics, see your compiler manual, such as Chapter 8 in the GFortran manual.

convert c++ libraries to objective-c [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Now I am porting c++ game to objective-c.
The source code uses some dlls such as "malloc.h" and this is the standard dll of C++ so it
cannot be included in objective-c.
What is the best way to overcome this problem.
I hope your help.
Thanks.
To convert code from one language to another, you need to have at basic working knowledge of both languages and platforms involved. It sounds as if both your C/C++ and Objective-C knowledge is too rudimentary for you to undertake this task. I'd recommend you take a short course and work on small projects in both languages to gain some experience so that you'll be qualified to perform this translation.

What's the most recommended cross platform C++ library? [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
Is there something like jQuery that works the same in all browsers in the c/c++ world that will work consistently in all platforms?
Are you talking about for GUI elements? Qt is very popular.
Gnulib is intended to act as a facade for the system's native libc.
Depends on what you want to do. Boost is one of the most used one.