Article View: gnu.g++.bug
Article #968ignore template not inlined complaint
From: dak
Date: Tue, 15 Sep 1992 11:52
Date: Tue, 15 Sep 1992 11:52
7 lines
798 bytes
798 bytes
Sorry about last post. ARM states that a template function is only used if there is no appropriate function definition before. If you do not GLOBALLY define an instance, only the linker knows how to resolve. And the linker is not good in inlining functions. So, DO declare the first instance of your template GLOBALLY, if you want high efficiency. Works with g++ 2.2.2.
Technical Details
Message-ID:
<9209150752.AA28519@kaa>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pool.INformatik.rwth-aachen.DE!dakShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!pool.INformatik.rwth-aachen.DE!dak From: dak@pool.INformatik.rwth-aachen.DE Subject: ignore template not inlined complaint Message-ID: <9209150752.AA28519@kaa> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Tue, 15 Sep 1992 11:52:28 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 8