Tower of Hanoi solved using C++ template metaprogramming - GitHub - b8horpet/toh_tmp: Tower of Hanoi solved using C++ template metaprogrammi
image credit

seen from United States
seen from Canada
seen from Russia

seen from United Kingdom
seen from China
seen from China
seen from China
seen from China
seen from China
seen from Russia
seen from United States
seen from South Africa

seen from Malaysia
seen from United States
seen from Poland
seen from China
seen from Türkiye

seen from United States

seen from United States

seen from Trinidad & Tobago
Tower of Hanoi solved using C++ template metaprogramming - GitHub - b8horpet/toh_tmp: Tower of Hanoi solved using C++ template metaprogrammi
image credit

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
Using C++ template metaprogramming, I'll try to solve FizzBuzz by having the compiler output the solution as error messages.
Devirtualizando
devirt.cpp
Un poco de template metaprogramming
to_bool_arr.cpp
Y eso se compila a:
main: ; ... movdqa xmm0, XMMWORD PTR .LC0[rip] mov rbx, rsp movdqa XMMWORD PTR [rsp], xmm0 ; ... .LC0: .byte 1 .byte 0 .byte 1 .byte 1 .byte 1 .byte 1 .byte 1 .byte 0 .byte 1 .byte 1 .byte 1 .byte 0 .byte 1 .byte 1 .byte 1 .byte 1
Fascinante!
(Gracias a GCC Explorer)