From owner-freebsd-ports@freebsd.org Mon Nov 14 09:08:07 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2DAAFC402B5 for ; Mon, 14 Nov 2016 09:08:07 +0000 (UTC) (envelope-from patrick_lists@phess.net) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.31.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DE3DD139E for ; Mon, 14 Nov 2016 09:08:06 +0000 (UTC) (envelope-from patrick_lists@phess.net) Received: from [95.88.166.104] (helo=mailserver.phess.net) by smtprelay03.ispgateway.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.84) (envelope-from ) id 1c6Cws-0001pk-Gb for freebsd-ports@freebsd.org; Mon, 14 Nov 2016 09:49:06 +0100 Received: from desk8.phess.net (desk8.phess.net [192.168.0.8]) by mailserver.phess.net (Postfix) with ESMTP id DBD974EB49 for ; Mon, 14 Nov 2016 09:49:04 +0100 (CET) Subject: Re: How compile "String inf = static_cast(&(ostringstream() << pAct.minArea))->str();" To: freebsd-ports@freebsd.org References: From: Patrick Hess Message-ID: Date: Mon, 14 Nov 2016 09:49:04 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Df-Sender: bWFpbGVyQHBoZXNzLm5ldA== X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Nov 2016 09:08:07 -0000 On 09.11.2016 02:37, OtacĂ­lio wrote: > I'm trying create a patch to OpenCV 3.1 runs on FreeBSD but clang don't compiles lines like this: > > String inf = static_cast(&(ostringstream() << pAct.minArea))->str(); You need to provide us with the *exact* error message from clang. By the way, that line is the text-book definition of code horror, but that's a different story. Patrick -- If you'd like to send me a private message, make sure to remove the "_lists" part from my address.