fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. template <std::size_t SIZE>
  6. class A
  7. {
  8. public:
  9. using const_buffer_t = const char(&)[SIZE];
  10. };
  11.  
  12. int main()
  13. {
  14. char a[5];
  15.  
  16. A<5>::const_buffer_t p1 = a;
  17. A<5>::const_buffer_t &&p2 = a; // an r value reference !
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty