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 / Visual Studio.NET / General / August 2006

Tip: Looking for answers? Try searching our database.

Is this a Bug of VS 2005?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
cqulyx@gmail.com - 04 Aug 2006 05:35 GMT
Is this a Bug of VS 2005?

We know size_t is not a built-in data type in C++, rather, it is just a
typedef declaration.

However, I found the following code could be normally compiled with VS
2005:

// Note that I don't include any header file in this source file

size_t Test(size_t a)
{
    return a;
}

int main()
{
    size_t n = Test(8);

    return n;
}

Why? Is this really a bug of VS 2005?
Gerry Hickman - 09 Aug 2006 20:37 GMT
Hi,

Have you checked all the project settings with care? There are some
bizarre "inheritance" issues with VS2005 projects. How did you create
the project in the first place?

It seems the build-in projects will inherit certain defaults from
project "templates". Look out for this, even if it's not relevant to
this topic.

What do you see if you right-click size_t and tell it to find the
declaration and definition?

> Is this a Bug of VS 2005?
>
[quoted text clipped - 19 lines]
>
> Why? Is this really a bug of VS 2005?

Signature

Gerry Hickman (London UK)


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.