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() { ...
Flutter asked 17/12, 2016 at 12:41

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...
Shoshonean asked 24/10, 2016 at 20:57

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...
Pianola asked 15/10, 2016 at 3:41

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....
Czar asked 20/7, 2015 at 19:58

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, ...
Yardley asked 11/10, 2016 at 20:29

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 ...
Adinaadine asked 16/8, 2016 at 4:8

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...
Anzac asked 11/6, 2014 at 9:1

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 ...
Throw asked 22/9, 2014 at 17:25

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...
Emersed asked 13/7, 2016 at 11:40

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: ...
Palmira asked 12/5, 2016 at 12:8

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...
Nicol asked 6/4, 2016 at 20:21

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...
Afrikaner asked 5/4, 2016 at 13:1

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...
Evidential asked 24/4, 2014 at 1:56

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

While libstdc++ does not, libc++ does follow the standard which states that passing ios_base::failbit to basic_istream::exceptions has no effect on formatted input. For example this code: istringst...
Kinnon asked 29/1, 2016 at 16: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...
Urceolate asked 26/1, 2016 at 17:11

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...
Adelia asked 20/1, 2016 at 14:57

2

Solved

Why doesn't this work: #include <regex> int main() { return 0; } Compiled as: clang++ -std=c++11 -stdlib=libstdc++ temp.cpp temp.cpp:1:10: fatal error: 'regex' file not found #include &l...
Euton asked 11/1, 2016 at 19:21

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...
Larceny asked 5/3, 2010 at 3:15

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...
Appressed asked 19/12, 2015 at 22:12

3

Solved

I'm working on an embedded project that currently uses C in Linux and uClibc. We're interested in moving it to C++, but I don't want the overhead associated with linking in libstdc++. My impression...
Ramiah asked 31/10, 2009 at 1:9

© 2022 - 2024 — McMap. All rights reserved.