Sponsored Content
Top Forums Programming c++ templates problems in g++ Post 7609 by Marhinado John on Friday 28th of September 2001 08:28:54 AM
Old 09-28-2001
Network c++ templates problems in g++

what we have:
class TClass {
public:
TClass();
};

template<class T> class FClass<T>: public T {
public:
FClass();
};

TClass::TClass() {
// some code
}

template<class T> FClass<T>::FClass : T() {
// some code
}

int main (int argc,char* argv[]) {
FClass<TClass>* FClass1 = new FClass<TClass>;
return 0;
}

g++ doesn't seem to like this code portion and failed to compile this, but Borland C++ Builed compiled this without any warnings.

What's wrong?
 

7 More Discussions You Might Find Interesting

1. Programming

site templates?

Are there any web site templates on CGI that allow like this forum software user registration and profiles. I dont need forum software i just need to register and keep profiles of my users on my site. Any suggestions? :confused: Thank you all. (1 Reply)
Discussion started by: solvman
1 Replies

2. Post Here to Contact Site Administrators and Moderators

Templates

Hello, Anybody in here has any idea where I can get a template like this one for vBulletin. I have actually got my board but it just doesn't look good in the template that I have! Thanks anyway! him (2 Replies)
Discussion started by: him
2 Replies

3. HP-UX

Where are SAM user templates stored?

Hey, new here, so be nice! I'm trying to write a little script to automate the user creation process on one of our boxes. But I would like to be able to use the templates that we have set up in SAM. Is the information in these templates stored in a file somewhere, that I can reference in my... (5 Replies)
Discussion started by: paqman
5 Replies

4. Shell Programming and Scripting

Reading from Templates

I am trying to write a script that would retrieve specific information from a template. I have been trying to no avail for the longest. This is what I wrote and it's not working. cat filename | while read F5 F6 do if ] then echo $F5 $F6 fi done Here is the template (filename) CN ... (7 Replies)
Discussion started by: Ernst
7 Replies

5. Solaris

A compilation problem when using templates

Hello life savers, I'm having trouble compiling a specific program. The program was originally written for gcc and was compiled successfully under it. When trying to compile under Solaris 11, I get this error: "Hashtable.h", line 170: Error: Could not find a match for hash needed in... (2 Replies)
Discussion started by: yp515
2 Replies

6. Programming

Templates and header file

I have some C++ code and want to have the class declarations in a .h file and the implementation in the .cpp file. It seems however that for templates everything need to be put in the header (.h) file and will have problems if I try to separate the code to a .cpp file. Is this correct? Is... (1 Reply)
Discussion started by: kristinu
1 Replies

7. Programming

C++ templates

I have the following template codes but some normal functions too and want to group them together. I usually put the implementation of templates in an .ipp file. What would be a good scheme for the normal functions. Put their implementations in a .cpp file, or leave them in the .ipp file? ... (3 Replies)
Discussion started by: kristinu
3 Replies
GMAGICKDRAW(3)								 1							    GMAGICKDRAW(3)

The GmagickDraw class

INTRODUCTION
CLASS SYNOPSIS
GmagickDraw GmagickDraw Methods o public GmagickDraw GmagickDraw::annotate (float $x, float $y, string $text) o public GmagickDraw GmagickDraw::arc (float $sx, float $sy, float $ex, float $ey, float $sd, float $ed) o public GmagickDraw GmagickDraw::bezier (array $coordinate_array) o public GmagickDraw GmagickDraw::ellipse (float $ox, float $oy, float $rx, float $ry, float $start, float $end) o public void GmagickDraw::getfillcolor (void ) o public float GmagickDraw::getfillopacity (void ) o public string GmagickDraw::getfont (void ) o public float GmagickDraw::getfontsize (void ) o public int GmagickDraw::getfontstyle (void ) o public int GmagickDraw::getfontweight (void ) o public void GmagickDraw::getstrokecolor (void ) o public float GmagickDraw::getstrokeopacity (void ) o public float GmagickDraw::getstrokewidth (void ) o public int GmagickDraw::gettextdecoration (void ) o public string GmagickDraw::gettextencoding (void ) o public GmagickDraw GmagickDraw::line (float $sx, float $sy, float $ex, float $ey) o public GmagickDraw GmagickDraw::point (float $x, float $y) o public GmagickDraw GmagickDraw::polygon (array $coordinates) o public GmagickDraw GmagickDraw::polyline (array $coordinate_array) o public GmagickDraw GmagickDraw::rectangle (float $x1, float $y1, float $x2, float $y2) o public GmagickDraw GmagickDraw::rotate (float $degrees) o public GmagickDraw GmagickDraw::roundrectangle (float $x1, float $y1, float $x2, float $y2, float $rx, float $ry) o public GmagickDraw GmagickDraw::scale (float $x, float $y) o public GmagickDraw GmagickDraw::setfillcolor (string $color) o public GmagickDraw GmagickDraw::setfillopacity (float $fill_opacity) o public GmagickDraw GmagickDraw::setfont (string $font) o public GmagickDraw GmagickDraw::setfontsize (float $pointsize) o public GmagickDraw GmagickDraw::setfontstyle (int $style) o public GmagickDraw GmagickDraw::setfontweight (int $weight) o public GmagickDraw GmagickDraw::setstrokecolor (GmagickPixel $color) o public GmagickDraw GmagickDraw::setstrokeopacity (float $stroke_opacity) o public GmagickDraw GmagickDraw::setstrokewidth (float $width) o public GmagickDraw GmagickDraw::settextdecoration (int $decoration) o public GmagickDraw GmagickDraw::settextencoding (string $encoding) PHP Documentation Group GMAGICKDRAW(3)
All times are GMT -4. The time now is 07:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy