gcc6 Questions

2

Solved

i'm facing a problem with filesystem library, it should be included in c++17 compiler, after 2 days i tried to install gcc-7.0.2 in raspberry pi but it didn't work, it couldn't recognize the comman...
Own asked 24/8, 2017 at 17:8

3

Solved

I'm trying to compile this piece of c++ 17 code that contains std::sample using gcc version 6.3.0 with the following command: g++ -std=gnu++17 -c main.cpp. But I get this: error: ‘sample’ is not a...
Dicotyledon asked 10/9, 2018 at 22:32

3

Solved

I am trying to figure out if I can use concepts as a kind of interface for classes without requiring the overhead of a virtual table. I put together an example which sort-of works, but I have to st...
Africander asked 24/8, 2018 at 2:56

1

Solved

I'm writing a library that will operate on multiple systems (some of which do not have malloc or a stdlib). In my stdlib (different lib), I am overriding the new and delete operators to make generi...
Atc asked 9/11, 2016 at 15:0

2

I have a static method my_method_1() in my_class, and I am trying to use it in a lambda: static void my_method_1(el); void my_class::my_method_2() { std::for_each(my_list_.begin(), my_list_.end(...
Baudin asked 16/12, 2017 at 10:24

1

Solved

(Sorry in advance for not having managed to reduce my problem to a simple failing test case...) I have faced issues with upgrading to GCC 6.3.0 to build our codebase (relevant flags: -O3 -m32). S...
Punish asked 16/2, 2017 at 10:43

3

Solved

I’m unsure on whether it’s normal or it’s a compiler bug but I have a C struct with lot of members. Among of them, there’s, : struct list { ... ... const unsigned char nop=0x90; // 27 by...
Nidia asked 16/11, 2016 at 21:34

1

Solved

Since GCC 6 in C++ the declaration/definition of a unique_ptr<T[]>::reset method (not the one, that accepts only nullptr_t) looks like this: template <typename _Up, typename = _Require&l...
Jointed asked 14/10, 2016 at 16:46

0

I've recently played around with the target_clones attribute available from gcc 6.1 and onward. It's quite nifty, but, for now, it requires a somewhat clumsy approach; every function that one wants...
Borman asked 11/10, 2016 at 14:41

1

I was profiling a small piece of code that is part of a larger simulation, and to my surprise, the STL function equal (std::equal) is much slower than a simple for-loop, comparing the two arrays el...
Abstractionism asked 1/9, 2016 at 3:59

3

Let's consider follwing code. In fact this is narrowed problem I found using gmock and mocking void(void) method. class Base { public: virtual ~Base() {} }; class Derived : public Base { publi...
Ploughboy asked 13/7, 2016 at 12:54

1

Solved

Consider the following code: namespace foo { namespace bar { class foo {}; } class baz {}; } using namespace foo::bar; ::foo::baz mybaz; Is this code valid? Or is ::foo ambiguous? Or does :...
Capricecapricious asked 18/5, 2016 at 14:3
1

© 2022 - 2024 — McMap. All rights reserved.