#include <boost/shared_ptr.hpp> or #include "boost/shared_ptr.hpp"?

Discussion in 'C++' started by Colin Caughie, Aug 29, 2006.

  1. Is there a general rule/convention for when to use angle brackets and
    when to use quotes in #include statements? Is the angle bracket reserved
    for "system" header files (e.g. standard library headers), or is it for
    general "stable" include files?

    What about the grey areas in between these and actual application code,
    e.g. headers for a library that is under my control but external to the
    project being compiled?

    I know both styles work, and in the case of the Boost headers I've seen
    both of them used in example code, I'm just wondering if one is more
    "correct"?

    Cheers,
    Colin
     
    Colin Caughie, Aug 29, 2006
    #1
    1. Advertising

  2. Colin Caughie

    Shooting Guest

    <>will search the system folder and project/IDE specified additional
    include dictionary
    "" will search in your project dictionary

    Colin Caughie wrote:
    > Is there a general rule/convention for when to use angle brackets and
    > when to use quotes in #include statements? Is the angle bracket reserved
    > for "system" header files (e.g. standard library headers), or is it for
    > general "stable" include files?
    >
    > What about the grey areas in between these and actual application code,
    > e.g. headers for a library that is under my control but external to the
    > project being compiled?
    >
    > I know both styles work, and in the case of the Boost headers I've seen
    > both of them used in example code, I'm just wondering if one is more
    > "correct"?
    >
    > Cheers,
    > Colin
     
    Shooting, Aug 29, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Philippe Guglielmetti
    Replies:
    4
    Views:
    900
    tom_usenet
    Oct 9, 2003
  2. Steven T. Hatton

    #include <boost/intrusive_ptr.hpp>

    Steven T. Hatton, Jun 15, 2005, in forum: C++
    Replies:
    4
    Views:
    2,628
    Steven T. Hatton
    Jun 15, 2005
  3. Tomás

    Gems -- #include <gems.hpp>

    Tomás, Mar 4, 2006, in forum: C++
    Replies:
    7
    Views:
    425
    Tomás
    Mar 5, 2006
  4. Toby Bradshaw
    Replies:
    6
    Views:
    1,756
    Kai-Uwe Bux
    Jun 2, 2006
  5. ArbolOne
    Replies:
    6
    Views:
    129
    Jorge
    Jan 14, 2009
Loading...

Share This Page