-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
Code fails to compile if boost::rational is used as the parameter to a function that also shares a signature with a void* - for example:
#include <boost/rational.hpp>
void foo(void(*)()) {}
void foo(boost::rational<int>) {}
void fun() {}
int main() {
foo(fun);
}
https://wandbox.org/permlink/a06FvkYIP5asIys0
This returns an error in from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/ios_base.h:41,
Apologies since I'm not familiar with the code enough to give a better example/understanding of what's happening. Please let me know what other information I can provide or how I can help get this sorted.
thanks,
John
Metadata
Metadata
Assignees
Labels
No labels