Opened 5 years ago

#13105 new Bugs

Add missing top level include guards

Reported by: anonymous Owned by: Douglas Gregor
Milestone: To Be Determined Component: function
Version: Boost 1.64.0 Severity: Problem
Keywords: Cc:

Description

This ticket is addressed by this pull request: https://github.com/boostorg/function/pull/13/files

The missing top level include guard means that even if boost/function.hpp is included in a pre-compiled header, we still pay the heavy boost pp pre-processing cost every time it is also included.

This is very problematic with Visual Studio intellisense: It pre-process and parses the translation unit on the fly to provide syntax/semantic highlighting.

In our projects, this fix remove a couple of seconds in this process. (boost/function.hpp is included in many headers that result in pre-processing it multiple time per compilation units)

Change History (0)

Note: See TracTickets for help on using tickets.