🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2787

Q: Bor. C++ linker err. when passing template references

#2787
From: Peter Ikusz
Date: Mon, 11 Sep 1995 13:12
23 lines
876 bytes
What I am doing should be legal (I think), at least the compiler
doesn't complain about it.

typedef TArray<string> TArrayOfString;

TArrayOfString &Funk(TArrayOfString &MyArray)
	{
	string s;

	MyArray.Flush();  // ok, no linker error

	MyArray.Add(string); // Fails at link time

	return MyArray;
	}

So, this should be legal right? Is this a compiler name
mangling bug or a linker bug that anyone knows of?

Thanks,
-Pete

Follow-up to: "v$pikusz@qgraph.com"
Technical Details
Message-ID: <431cjr$k49@earth.alpha.net>
Path: arc1-ca.pugleaf.net!earth.execpc.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!earth.execpc.com!not-for-mail
From: pi@earth.execpc.com (Peter Ikusz)
Newsgroups: comp.os.ms-windows.programmer.misc,comp.lang.c++
Subject: Q: Bor. C++ linker err. when passing template references
Date: 11 Sep 1995 08:12:27 -0500
Organization: Exec-PC
Message-ID: <431cjr$k49@earth.alpha.net>
NNTP-Posting-Host: earth.execpc.com
Keywords: Borland C++, templates, references