Skip to main content
JensB's user avatar
JensB's user avatar
JensB's user avatar
JensB
Student
  • Member for 4 years, 3 months
  • Last seen more than a month ago
  • Stockholm, Sverige
7 votes
1 answer
1k views

Is there a way to combine several enums into one?

6 votes
1 answer
1k views

Is there any workaround for passing a function template as a template parameter?

4 votes
2 answers
3k views

C++ - Are classes with only static members bad practice/anti-pattern?

3 votes
2 answers
89 views

Is there a way to make the compiler include functions from outer scopes when picking a candidate?

3 votes
2 answers
135 views

When passing a contiguous array to a function, is it more preferable to pass a pointer and the size, or a begin-pointer and an end-pointer? [closed]

3 votes
2 answers
564 views

How can I override a purely virtual method, yet still force child classes to implement the same method?

3 votes
2 answers
992 views

Why is the debugger throwing "read access violation. this was nullptr" exception?

3 votes
1 answer
593 views

How do you solve the "deep copy of an abstract class" problem when you are working with an abstract class from a library?

2 votes
2 answers
231 views

Is there a way to make sure inherited member is not accessible in derived classes, while still keeping the benefits of public inheritance?

2 votes
1 answer
63 views

Why is it possible to use rvalue references as members without lifetime problems?

2 votes
1 answer
221 views

Why is my sound file not being found when I run my program from the desktop?

2 votes
3 answers
829 views

Is it impossible to pass a run-time integer as a template argument?

2 votes
1 answer
421 views

Way for class template to deduce type when constructing an instance with std::make_unique?

1 vote
1 answer
842 views

What is meant by the statement that std::declval cannot be called?

1 vote
1 answer
125 views

Is there a type in the standard for storing the begin- and end-iterators of a container?

1 vote
0 answers
122 views

Should you split up implementation of member function templates and normal member functions?

1 vote
0 answers
340 views

Is there a way to count the number of times a constexpr function has been called?

1 vote
1 answer
152 views

Is there a way for a class template to deduce the size of a parameter pack passed to the constructor?

1 vote
3 answers
672 views

What is the fastest way to check if a line segment contains a point using C++?

1 vote
2 answers
684 views

How can I have a function pointer template as a template parameter?

1 vote
1 answer
177 views

Why am I getting compiler warnings for these explicit instantiations?

1 vote
0 answers
798 views

How do I stop the command prompt window from appearing every time I run the program in Visual Studio?

1 vote
2 answers
427 views

Is there a way to convert a function pointer to an std::function without specifying return type and argument type?

1 vote
0 answers
30 views

Why does a move constructor need to be declared noexcept for std::vector to use it? [duplicate]

1 vote
1 answer
546 views

Why does passing a parameter pack to a function with one template parameter call it multiple times?

1 vote
0 answers
291 views

Is there a way to define a function template in a header and make it inaccessible to files who include the header?

1 vote
2 answers
121 views

How do you create a smart pointer from 'this'?

1 vote
4 answers
687 views

Is there a more efficient way of getting the type of derived class when working with a pointer to an abstract base class?

1 vote
2 answers
82 views

How can I create an overload for this method?

1 vote
1 answer
56 views

Is there a way to declare a member in a way that will make it static in all derived classes?