Opened 11 years ago

Closed 11 years ago

#5521 closed Bugs (fixed)

build error in scoped_connection(MacOS)

Reported by: gchevallereau@… Owned by: Marshall Clow
Milestone: To Be Determined Component: signals
Version: Boost 1.46.1 Severity: Problem
Keywords: Cc:

Description

Code which use the swap method of scoped_connection get a linker error(at least on MacOS with GCC 4.0).

This attached patch fixed it.

Attachments (1)

boost_signals_fix_link_error.patch (464 bytes ) - added by anonymous 11 years ago.

Download all attachments as: .zip

Change History (3)

by anonymous, 11 years ago

comment:1 by Marshall Clow, 11 years ago

Owner: changed from Douglas Gregor to Marshall Clow
Status: newassigned

Here's my test program:

#include <boost/signals/connection.hpp>

int main ( int argc, char *argv [] ) {
	boost::signals::scoped_connection c1, c2;
	
	std::swap ( c1, c2 );
	return 0;
	}

This compiles, links and runs (Mac OS X 10.6.7, gcc 4.2.1). Do you have an simple program that fails?

comment:2 by Marshall Clow, 11 years ago

Resolution: fixed
Status: assignedclosed

(In [74521]) Applied patch, added test; Fixes #5521

Note: See TracTickets for help on using tickets.