python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Why does requires-expression behave differently in template and not-template for checking private member access?
In the following code class A has a private member function f. I want to write a static assertion that will check whether this function is accessible from the current context (as was suggested in the ...
Fedor
Votes: 0
Answers: 1
std::equality_comparable concept checking in a context where private operator == is accessible
std::equality_comparable allows one to check that class objects can be compared using == and != operators. But what shall it return if the operators exist but available not in all contexts?
In the nex...
Fedor
Votes: 0
Answers: 0
Template function specialization for specific template ( not type )
I have some templated class types like A,B,C as follows:
template < typename T >
class A{};
template < typename T >
class B{};
template < typename T >
class C{};
And now I want ...
Klaus
Votes: 0
Answers: 3
class is not nothrow constructible but is nothrow destructible
I have a class like below:
#include <iostream>
#include <type_traits>
#include <concepts>
#include <vector>
class Foo
{
public:
Foo( )
: m_member1( 1 ), m_member2( 2 )...
digito_evo
Votes: 0
Answers: 1