CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 15 of 19

Threaded View

  1. #3
    Join Date
    Dec 2005
    Posts
    382

    Re: forcing value to bool 'true' or 'false' (performance warning)

    Quote Originally Posted by Paul McKenzie View Post
    Code:
     bool  xx = (f.GetMethod ( ) == whatever_you_say_means_true)?true:false;
    Regards,

    Paul McKenzie
    Good point!..
    Last edited by mop65715; March 15th, 2009 at 09:02 AM. Reason: error in reasoning.. Pauls solution works in either direction. Thanks Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured