Results 1 to 4 of 4

Thread: QT_BEGIN_NAMESPACE question

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Apr 2010
    Posts
    769
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11
    Thanks
    1
    Thanked 94 Times in 86 Posts

    Default Re: QT_BEGIN_NAMESPACE question

    The first method can be faster; the compiler doesn't need to process the contents of the header files as it does in the second method. This only affects compilation time, and on the systems I've used there is no perceptible difference in compilation speed. On large projects, or where you have a large number of include files, it may make more of a difference.

  2. The following 2 users say thank you to SixDegrees for this useful post:

    khanhsk (12th April 2011), veraS (3rd July 2010)

Similar Threads

  1. What is the benefit of QT_BEGIN_NAMESPACE?
    By Spectralist in forum Newbie
    Replies: 2
    Last Post: 12th December 2009, 11:40
  2. What's effect of QT_BEGIN_NAMESPACE? Thanks
    By mihayinoviki in forum Qt Programming
    Replies: 10
    Last Post: 19th August 2009, 20:21

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.