• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Templated function inlining
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Templated function inlining


  • Subject: Re: Templated function inlining
  • From: Jonny Taylor <email@hidden>
  • Date: Sun, 23 Nov 2008 12:27:42 +0000
  • Authenticated-sender:

On 23 Nov 2008, at 12:11, Philip Aker wrote:

Using the following placement compiles without errors on my setup (g ++ from Terminal):

template<class Type> class MyClass {
__attribute__((always_inline)) int LowestCost1( void ) const {
return Operator1<Type>::Cost();
}
template<class Operator> __attribute__((always_inline)) int LowestCost2( void ) const {
return Operator::Cost();
}

Thanks very much Phil, that has done the trick. _______________________________________________ Do not post admin requests to the list. They will be ignored. Xcode-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Templated function inlining (From: Jonny Taylor <email@hidden>)
 >Re: Templated function inlining (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Templated function inlining
  • Next by Date: Examining RTF
  • Previous by thread: Re: Templated function inlining
  • Next by thread: Examining RTF
  • Index(es):
    • Date
    • Thread