All Questions
1 question
1
vote
1
answer
211
views
C++ constexpr function template compiles with non-literal and non-aggregate types. Is this a bug with gcc? [duplicate]
Consider the following code:
#include <iostream>
#include <cstdlib>
struct NonAggregate
{
// Non-aggregate due to user defined constructor
// It is also not constexpr
explicit ...