🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.nativeapi
2 messages
2 total messages Started by Brian Dumas Tue, 08 Apr 2003 15:35
can template params be used for properties?
#17171
Author: Brian Dumas
Date: Tue, 08 Apr 2003 15:35
22 lines
1478 bytes
I have the following code that cannot compile

template <typename Key, typename T>
class kvdmap
{
private:
    void setEntry(Key& k, T& t);
    T&   getEntry(Key& k);

public:
    kvdmap();                   //void constructor
    kvdmap(AnsiString name);    //initialized constructor
    __property T& Item[Key&] = {read = getEntry, write = setEntry};
};

Does this mean that template parameters can't be used in a property
declaration?

thanks for ANY and ALL help,

Brian
brian@kvdco.com
Re: can template params be used for properties?
#17075
Author: Remy Lebeau (TeamB)
Date: Tue, 08 Apr 2003 16:13
13 lines
1348 bytes
"Brian Dumas" <brian@kvdco.com> wrote in message
news:3e92ec54@newsgroups.borland.com...

> Does this mean that template parameters can't be used
> in a property declaration?

Why?  Are you having an actual problem with it?  If so, then please state as
much, as all you've posted here is source code but no explanation about it
at all.


Gambit
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads