cppfront icon indicating copy to clipboard operation
cppfront copied to clipboard

[BUG] no match for operator<< and const cpp2::nonesuch_

Open wolfseifert opened this issue 1 year ago • 0 comments
trafficstars

After pulling in 510eae80bf3b92c7e210817c329e4b417d0012ec:

main: () = {
  a: std::any = 1;
  std::cout 

transpiles to

#define CPP2_IMPORT_STD          Yes
#include "cpp2util.h"
auto main() -> int;
auto main() -> int{
  std::any a {1}; 
  std::cout (a) (std::move(a)) 

but does not compile

anys.cpp:10:13: error: no match for ‘operator’} and ‘const cpp2::nonesuch_’)
   10 |   std::cout (a) }

wolfseifert avatar Feb 04 '24 12:02 wolfseifert