[mlpack-svn] [MLPACK] #155: order of includes and include protections

MLPACK Trac trac at coffeetalk-1.cc.gatech.edu
Tue Nov 1 13:22:20 EDT 2011


#155: order of includes and include protections
--------------------------------------------------+-------------------------
  Reporter:  nslagle                              |        Owner:     
      Type:  wishlist                             |       Status:  new
  Priority:  major                                |    Milestone:     
 Component:  MLPACK                               |   Resolution:     
  Keywords:  includes, templates, style, nitpick  |     Blocking:     
Blocked By:                                       |  
--------------------------------------------------+-------------------------

Comment (by mamidon):

 Replying to [comment:10 jcline3]:
 > > Well, in a large library like ours that isn't really the right thing
 to do. Instead I would expect a user to write #include
 <mlpack/methods/neighbor_search/neighbor_search.h> and only include what
 they need.
 >
 > I don't see the point in that, since any method they #include will
 #include core.h, and thus everything anyway.
 I think he's referring to the fact that including more than is necessary
 is wasteful, and may slow down compile times, especially on larger
 projects.

-- 
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/155#comment:11>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.


More information about the mlpack-svn mailing list