PDA

View Full Version : [C] Emulare template


Unrue
03-12-2008, 18:12
Ciao ragazzi,
c'è un modo in C per emulare i template di C++?

Usando il void più o meno qualcosa si può fare, ma non è la stessa ovviamente. Qualche altro modo?

Grazie.

javaboy
03-12-2008, 18:25
Ciao ragazzi,
c'è un modo in C per emulare i template di C++?

Usando il void più o meno qualcosa si può fare, ma non è la stessa ovviamente. Qualche altro modo?

Grazie.

Ho visto qualche orribile trucco con le macro ma temo di averlo rimosso.
Prova a vedere questo http://www.flipcode.com/archives/Faking_Templates_In_C.shtml
Io non l'ho neanche letto, se è una schifezza non ne ho colpa!!!

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.