Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / July 2004

Tip: Looking for answers? Try searching our database.

Compilation error using VS.NET C++7.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
dt - 08 Jul 2004 00:46 GMT
Hi,

I got compilation error: c:\gms\Services\DeviceManager\VCUE_Copy.h(134): warning C4346: 'MapType::value_type' : dependent name is not a type

for the following codes:

template <class MapType, class DestinationType = MapType::referent_type>
    class MapCopy
    {
    public :
    --->> typedef MapType::value_type    source_type;

any suggestion? I am using VS.NET C++7.0
thanks
David Olsen - 08 Jul 2004 05:42 GMT
> I got compilation error: c:\gms\Services\DeviceManager\VCUE_Copy.h(134): warning C4346: 'MapType::value_type' : dependent name is not a type
>
[quoted text clipped - 5 lines]
>     public :
>     --->> typedef MapType::value_type    source_type;

    typedef typename MapType::value_type source_type;

> any suggestion? I am using VS.NET C++7.0

Within a template definition, if a qualified name that depends on a
template parameter is supposed to refer to a type, the name must be
preceded by the keyword "typename".

Signature

David Olsen
qg4h9ykc5m@yahoo.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.