libstdc++ Questions
1
Solved
Consider the following small test program for type traits of the GNU-extensions for __uint128_t
#include <limits>
#include <type_traits>
using uint128_t = __uint128_t;
int main()
{
...
1
Solved
According to the standard, std::vector<bool> has no member function data(). However, the following snippet compiles fine with the latest GCC with libstdc++:
#include <vector>
int main...
1
I am trying to run swift 3.0 on debian 8(Jessie). However, I don't think there is the required version of libstdc++.so.6 file on my laptop. I typed "locate libstdc++.so.6" in the terminal. Below ar...
3
Solved
I am trying to run appium tests. However I get error saying what:
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found
I am using RedHat6.6. When I run:
strings /usr/lib/libstdc++.so....
3
Solved
I'm trying to get a deeper understanding of C++ by reading the C++14 standard along with the source of libc++ and libstdc++. The implementation of various type_traits items varies between the two, ...
1
I came across a difference in behavior, between gcc (4.9.2) and clang (3.5.0), which surprised me.
When I try to feed an unsigned int from an std::istringstream initialized with a negative value (...
Tannenbaum asked 2/4, 2016 at 19:31
2
Solved
The std::sort of libcxx (llvm version of c++ standard
library) calls the comparison predicate with the same element i.e.,
both the arguments of comparison functor refer to the same position in
the ...
5
Solved
I was creating a new project out of nothing, for testing purpose, leaving all parameter to default (I didn't made any code change), on a new ADT installation (Ubuntu Gnome 14.04 LTS, x86_64 CPU), b...
1
Solved
In order to make use of C++11 and c++14 features I have an application compiled using
a newer version of gcc (4.9.1) and thus an newer version of libstdc++. The application consists of many
small ...
0
I found the C++ 11 random number generator in GCC 6.1.0 causes codes stuck in Mac OS X 10.11.5, a simple code snippet is as following:
#include <iostream>
#include <armadillo>
using n...
1
It's common to inherit from enable_shared_from_this just to be able to return shared_ptr's from member functions as the primary intention, with no intention of exposing enable_shared_from_this API ...
Yakut asked 3/7, 2016 at 1:17
1
Solved
My basic idea was to derive my own class from std::tuple to get some helper types inside like this:
template <typename ... T>
class TypeContainer: public std::tuple<T...>
{
public:
...
3
Solved
The following snippet:
#include <memory>
#include <utility>
namespace foo
{
template <typename T>
void swap(T& a, T& b)
{
T tmp = std::move(a);
a = std::move(b);
b...
Goth asked 25/4, 2016 at 20:32
1
Solved
I am trying to build an executable on Linux that meets the following criteria:
statically linked to libstdc++ and libgcc
built with a recent version of gcc (version >= 4.8.2) and glibc (version...
2
Solved
I have the following piece of code that surprised me (using libstdc++4.8)...
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
std::st...
2
Solved
--disable-hosted-libstdcxx
only build freestanding C++ runtime support
from the <gcc>/libstdc++-v3/configure --help .
What is this freestanding mode and what are the limits and the benefi...
3
I wish to use the -fsanitize=memory flag in clang to analyse a program like the following:
#include <string>
#include <iostream>
#include <fstream>
using namespace std;
void wri...
Ruralize asked 16/12, 2013 at 18:8
1
1
Solved
In my simple first OpenCV application I want to save frames got by cam so I am using imwrite() as tutorial say. The problem, is that I can't compile because I get this error:
Undefined symbols fo...
Haynor asked 27/1, 2016 at 23:53
2
I'm not sure about how to use std::istream::exception according to the standard, to let std::istream::operator>> throw an exception if it can't read the input into a variable, e.g. double.
T...
1
Solved
I'm looking for a set of portable distributions for the standard C++11 engines like `std::mt19937' (see http://en.cppreference.com/w/cpp/numeric/random).
The engine implementations perform consist...
2
Solved
8
With stl::vector:
vector<int> v(1);
v[0]=1; // No bounds checking
v.at(0)=1; // Bounds checking
Is there a way to disable bounds checking without having to rewrite all at() as []? I am usi...
2
Solved
I'm writing some C++11 code that makes assumptions about the nature of std::string that are valid, but represent behavior that was changed in C++11. In the earlier days, libstdc++'s basic_string im...
© 2022 - 2024 — McMap. All rights reserved.