From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: Paul Derbyshire Cc: egcs@egcs.cygnus.com Subject: Re: Bug in libm or libstdc++. Date: Wed, 31 Mar 1999 23:46:00 -0000 Message-ID: References: <199903011944.LAA09214@kankakee.wrs.com> <3.0.6.32.19990302113149.009338b0@pop.globalserve.net> X-SW-Source: 1999-03n/msg00120.html Message-ID: <19990331234600.8QQNzm0EbE20y4006CjL-6aLBfI3QUqtvfyEYarc9I4@z> On Mar 2, 1999, Paul Derbyshire wrote: > ['export' is in Stroustrup 3rd Ed.] > Interesting. There is one lone mention in connection with templates, which > seems to describe some usage that never actually occurs, namely, putting a > template in a .cc file and expecting another .cc file to magically be able > to use it, instead of putting it in a .h file. How would such a scheme be > implemented anyways? Well, it doesn't occur because `export' is not widely available yet. But it probably will be in the future, and then people will probably start using it. The C++ Standard allows an implementation to require the translation unit containing the definition of the exported template to be compiled before others that depend on it, so it is possible to create databases with template repositories, but definitely some magic is needed in order to implement this, and such magic can hardly be made reliable. -- Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org,computer.org} oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org} Instituto de Computação, Universidade Estadual de Campinas, SP, Brasil