by: Bruce Lee Roy |
last post by:
Hi, I am using visual studio.net and I am having problems using this bit
of code when I create an instance,
////////////////////////////////////////////
template<class T>
class matrix : public...
|
by: Jason Heyes |
last post by:
How can I define the member function of this template class using VC++ 6.0?
The only way I got it to work was to define the member function inline.
template <typename T>
class Seq
{
public:...
|
by: Ian |
last post by:
Can it be done? If so, what's the syntax.
For example a full specialisation,
template <typename T>
struct X
{
template <typename C> void foo( C a ) {}
};
|
by: pascal.cathier |
last post by:
Is it possible to fully specialize a template member function? If not,
why is that so? The following code fails to compile with GCC:
class A
{
public:
template < typename T >
void foo() {}
...
|
by: john.constantine |
last post by:
Hi
I have this code:
template<typename ClassType>
struct S
{
template<typename FunctionType> void member() {};
};
|
by: rf |
last post by:
As I understand it, it is legal to have a template member function of a
non-template class, as in the following example:
class XYZ
{
public:
template <class Tvoid fn(T* ptr)
{
T val = *ptr;...
|
by: toton |
last post by:
Hi,
I want to specialize template member function of a template class .
It is creating some syntax problem ....
Can anyone say how to do it ?
The class is something like this
template<typename...
|
by: PengYu.UT |
last post by:
Hi,
I want to partial specialize the member function doit. But it doesn't
work. Could you please help me to figure out what is wrong?
Thanks,
Peng
template <typename T>
class A {
|
by: subramanian100in |
last post by:
consider the following program
#include <iostream>
using namespace std;
class Rec
{
public:
Rec(int arg = 10) : val(arg) { }
|
by: Peng Yu |
last post by:
Hi,
I have the following program. The error line is commented. I want to
call _a's member function 'doit' with the template argument of
function<T>. Would you please what is the correct way to...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: ryjfgjl |
last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|