File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change 55 \begin {block }{Interface}
66 Set of declarations defining some functionality
77 \begin {itemize }
8- \item put in a so-called `` header file''
9- \item the implementation exists somewhere else
8+ \item Put in a so-called `` header file''
9+ \item The implementation exists somewhere else
1010 \end {itemize }
1111 \end {block }
1212 \begin {block }{Header : hello.hpp}
4343 \pause
4444 \begin {block }{Use only in very restricted cases}
4545 \begin {itemize }
46- \item inclusion of headers
47- \item customization for specific compilers/platforms
46+ \item Conditional inclusion of headers
47+ \item Customization for specific compilers/platforms
4848 \end {itemize }
4949 \end {block }
5050\end {frame }
5353 \frametitlecpp [98]{Header include guards}
5454 \begin {block }{Problem: redefinition by accident}
5555 \begin {itemize }
56- \item a header may define new names (e.g.\ types)
57- \item multiple (transitive) inclusions of a header would define those names multiple times, which is a compile error
58- \item solution : guard the content of your headers!
56+ \item Headers may define new names (e.g.\ types)
57+ \item Multiple (transitive) inclusions of a header would define those names multiple times, which is a compile error
58+ \item Solution : guard the content of your headers!
5959 \end {itemize }
6060 \end {block }
6161 \begin {block }{Include guards}
You can’t perform that action at this time.
0 commit comments