c++ - Functions as arguments of variadic templates -


मान लें कि हमारे पास एक वर्ग है

  टेम्पलेट & lt; int (* F) (int, पूर्णांक) & gt; कक्षा { // ... };   

यह टेम्पलेट तर्क के रूप में एक फ़ंक्शन लेता है।

अब मैं एक variadic टेम्पलेट बनाना चाहता हूं, जो टेम्पलेट पैरामीटर के रूप में फ़ंक्शन लेता है।

  टेम्पलेट & lt; int (* F ...) (int, int) & gt; // यह टेम्प्लेट & lt; int (* F) (int, int) संकलित नहीं करेगा ... & gt; // यह या तो   

इसे कैसे ठीक से करने के लिए संकलित नहीं करेगा?

  टेम्पलेट & lt; int (* ... F) (int, int) & gt; कक्षा { // ... };    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -