Skip to main content
1 vote
2 answers
149 views

Take the below piece of code, that simply Trims a string, removing whitespace characters from either end: const std::string TrimString(const std::string& s) { const auto iter = std::find_if(s....
The Welder's user avatar
  • 1,099
-5 votes
1 answer
145 views

How is the sum of three doubles not a double?! int main() { auto answer = 1.0 + 2.0 + 3.0; std::cout << answer; return 0; } output: 6 What?!
Mark Storer's user avatar
  • 15.9k
1 vote
1 answer
105 views

I tried to add a picture to my HTML page, but the image was always way too large. I didn’t want to set the width and height in pixels, because then it doesn’t scale properly when the browser isn’t in ...
Nils Schüpbach's user avatar
-3 votes
1 answer
238 views

I want to use auto more in my code and came up with the following example: #include <vector> int main() { auto v{std::vector{}}; for (auto i{0}; i < 10; i++) { v.push_back(i)...
Panic's user avatar
  • 93
3 votes
3 answers
228 views

If I assign a lambda in C++ with this: auto&& mylambda = [&](int someparam) { some_function(); return 42; }; Is this wrong? I know that this triggers auto type deduction, but is ...
Dean's user avatar
  • 7,034
2 votes
1 answer
199 views

I'm running into an issue with function template specialization and return type deduction in C++. The following minimal example is meant to demonstrate the problem (https://godbolt.org/z/WT1Prnfh6): #...
user3612643's user avatar
  • 6,030
0 votes
1 answer
93 views

Please and before anything this is not only about YouTube. But YouTube is just an example. I am having an issue with YouTube comments that they are NOT displayed with HTML attribute dir=auto. So I am ...
superlinux's user avatar
0 votes
0 answers
15 views

I need to implement the auto zoom feature in the extension, along with the Zoom Control and Zoom Interaction On/Off functionalities, similar to those available in the Maps component of Oracle ...
Swapna Meda's user avatar
0 votes
1 answer
119 views

I have an issue on Android Auto application visibility on real car device.This is Navigation app. We have uploaded our Android Auto app to the Play Store for internal testing, and it has been approved ...
krashna singh's user avatar
0 votes
2 answers
136 views

For reference: C++17 std::optional error: expected primary-expression before 'auto' My test code is below. My understanding is that my usage of auto in this context is as outlined in the above ...
Vinod's user avatar
  • 1,215
3 votes
3 answers
219 views

When I implement a class I start with public interface and then continue with private details, which I think creates a good order for those that read the code: class Something { public: // ...
Krzysiek Karbowiak's user avatar
2 votes
1 answer
143 views

The following not very long program is treated differently by the current compilers: class A { protected: operator auto(); }; template<class> struct B : A { using A::operator auto; }; ...
Fedor's user avatar
  • 24.7k
0 votes
1 answer
79 views

#include <iostream> #include <concepts> struct Sound { int amplitude; }; struct Light { int brightness; }; template <typename T> concept Alert = std::derived_from<T, Sound> &...
ahfakt's user avatar
  • 43
0 votes
1 answer
113 views

In this page, it states that you can use Voice Input "to support building features such as an in-app digital assistant." I've been searching, but I can't find anything related to this voice ...
user29431918's user avatar
1 vote
0 answers
15 views

How can I Auto add some product attributes when adding a new product in Woocommerce I need to add some attributes to each category separately Like Processor category Auto attributes A B C Motherboard ...
Osama Alrefai's user avatar

15 30 50 per page
1
2 3 4 5
88