fork(1) download
  1. #include <tuple>
  2. #include <utility>
  3. using namespace std;
  4.  
  5. template<class ..._Attrs>
  6. class VertexBuffer
  7. {
  8. static constexpr const bool ownIndices = sizeof...(_Attrs) == 0;
  9.  
  10. void test(){
  11. static_asssert(ownIndices, "Link to owned indices!!");
  12. }
  13. };
  14.  
  15.  
  16. int main(){
  17. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In member function ‘void VertexBuffer<_Attrs>::test()’:
prog.cpp:11:61: error: there are no arguments to ‘static_asssert’ that depend on a template parameter, so a declaration of ‘static_asssert’ must be available [-fpermissive]
         static_asssert(ownIndices, "Link to owned indices!!");        
                                                             ^
prog.cpp:11:61: note: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
stdout
Standard output is empty