The reasoning behind Clang’s implementation of std::function’s move semantics

It is a bug in libc++ that cannot be immediately fixed because it would break ABI. Apparently, it is a conforming implementation, although obviously it is often suboptimal. It’s not clear exactly why the Clang devs made such an implementation choice in the first place (although maybe if you’re really lucky, someone from Clang will … Read more

Where can I browse the sourcecode for libc online (like doxygen)

You should check if your distribution is using the vanilla GLIBC or the EGLIBC fork (Debian and Ubuntu have switched to EGLIBC EDIT: they switched back around 2014). Anyway, the repository browser for GLIBC is at http://sourceware.org/git/?p=glibc.git http://code.woboq.org/userspace/glibc/, posted by @guruz below, is a good alternative. The source is a bit complicated by the presence … Read more

Install libc++ on ubuntu

How to build libc++ on Ubuntu 16.04 I had a similar issue as you do. While testing clang with libstdc++ worked fine with C++11 and C++14 there still might be licensing issues with libstdc++. So I ended up installing Clang toolchain from their repos and compiling libc++ on Ubuntu 16.04. Disclaimer: This post is summary … Read more

Does libcxxabi makes sense under linux? What are the benefits?

You should not use libcxxabi directly. To my understanding it is a kind of platform abstraction library, providing low level functions needed to implement libcxx. If you are asking about using libcxx or libstdc++, the differences are mostly the license, newer standard version completeness (the clang project seems slightly faster in implementing recent C++ revisions) … Read more

Should I free/delete char* returned by getenv()?

No you shouldn’t. Standard 7.20.4.5 says : The getenv function returns a pointer to a string associated with the matched list member. The string pointed to shall not be modified by the program, but may be overwritten by a subsequent call to the getenv function. I believe deletion is covered by the text in bold.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)