🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++.leda
Article #24

GRAPH does not print user-defined type of parameter.

#24
From: Ashvin Kannan
Date: Fri, 04 Aug 1995 19:33
40 lines
1186 bytes
The parameterized graph (GRAPH) does not print the type of the parameter
for the method write(), if it is user-defined. I'm using LEDA 3.1.2 and g++
2.6.3. I know that it used to work for LEDA 3.0. Can someone please point
out the problem/workaround. Sample code and output follow.

Thanks!

  Ashvin
----------------------------------------------------------------------
#include <LEDA/graph.h>

class foo {int a;};

int main()
{
    GRAPH<int, string> G;
    G.write(cout);

    GRAPH<int, foo> fooG;
    fooG.write(cout);

}
----------------------------------------------------------------------
OUTPUT:

%a.out
LEDA.GRAPH
int
string
0
0
LEDA.GRAPH
int
unknown
0
0
%
----------------------------------------------------------------------

			=======
Technical Details
Message-ID: <ASHVIN.95Aug4153322@parrot.bu.edu>
Path: arc1-ca.pugleaf.net!news.bu.edu!ashvin

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!news.bu.edu!ashvin
From: ashvin@raven.bu.edu (Ashvin Kannan)
Newsgroups: comp.lang.c++.leda
Subject: GRAPH does not print user-defined type of parameter.
Followup-To: comp.lang.c++.leda
Date: 04 Aug 1995 19:33:22 GMT
Organization: Boston University
Distribution: world
Message-ID: <ASHVIN.95Aug4153322@parrot.bu.edu>
Reply-To: ashvin@bu.edu
NNTP-Posting-Host: parrot.bu.edu