Opened 10 years ago

Closed 10 years ago

#7001 closed Bugs (fixed)

Macro guards are missing in boost/math/distributions/logistic.hpp

Reported by: jc_doubleimpact <jeanclaude.doubleimpact@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost Development Trunk Severity: Problem
Keywords: logistic guard Cc:

Description

#ifndef BOOST_STATS_LOGISTIC_HPP #define BOOST_STATS_LOGISTIC_HPP

...

#endif BOOST_STATS_LOGISTIC_HPP

are missing. This causes compilation error: "Class template has already been defined".

This is a minimal example where the problem occurs:

#include <boost/math/distributions/logistic.hpp>
#include <boost/math/distributions/logistic.hpp>

int main(){return 0;}

Attachments (1)

logistic.hpp.patch (662 bytes ) - added by jc_doubleimpact <jeanclaude.doubleimpact@…> 10 years ago.
Patch file

Download all attachments as: .zip

Change History (2)

by jc_doubleimpact <jeanclaude.doubleimpact@…>, 10 years ago

Attachment: logistic.hpp.patch added

Patch file

comment:1 by John Maddock, 10 years ago

Resolution: fixed
Status: newclosed

(In [79027]) Add missing include guards. Fixes #7001.

Note: See TracTickets for help on using tickets.