Modify

Opened 6 years ago

Closed 6 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@…> 6 years ago.
Patch file

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by jc_doubleimpact <jeanclaude.doubleimpact@…>

Attachment: logistic.hpp.patch added

Patch file

comment:1 Changed 6 years ago by John Maddock

Resolution: fixed
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain John Maddock.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.