15,908,841 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Alex_RO (Top 11 by date)
Alex_RO
10-Aug-11 15:07pm
View
An interested solution, I will try it to see what I get. Thanks!
Alex_RO
8-Aug-11 7:18am
View
I posted an improved solution that work, but I don't know why, it was deleted.
Alex_RO
8-Aug-11 7:01am
View
Yes, but if you change it with (*person::getSalary)(double s), or with (*person::getSalary)(int v,double s), will work, anyway I would like a pointer that would work for any version of the function,if it's possible.
Alex_RO
7-Aug-11 8:56am
View
Deleted
Take a look to "Template Partial Specialization",the second example. I think what are you trying to do is the same you find here, and let us know if this was helpfull.
http://www.cprogramming.com/tutorial/template_specialization.html
Alex_RO
5-Aug-11 13:25pm
View
thanks ;)
Alex_RO
3-Aug-11 8:03am
View
Yes,your fix is excellent. This is how I intendet to look like my original code. Thank a lot for the fix.
Alex_RO
3-Aug-11 5:04am
View
I know what you mean,also found something on the internet, but all are compiled with VS2010 and under my VS2008 this code does not work, possible to be because of the oldest type of compiler? I'm going to install VS2010.
Alex_RO
3-Aug-11 4:34am
View
I have written just T , and at the function I have written both TT1 and TT2 but I don't know why it has appeared T="". thanks,
Alex_RO
2-Aug-11 10:30am
View
Thanks both, _Superman_ and mbue. I have realized the error,it was a negligence of mine. Both solutions work, but what I wanted to do in fact, a template function, is what mbue said.
Alex_RO
2-Aug-11 8:14am
View
Deleted
I have writen: template "<" class tt1, class tt2 ">" double the_sum( .... - but it does not appear
Alex_RO
2-Aug-11 8:09am
View
Deleted
template <class tt1,class="" tt2=""> double the_sum(calc<int>& a,calc<double>& b ){return a.el+b.el;}
Show More