04.01.2015 Views

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

RealView Compilation Tools - ARM Information Center

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Language Extensions<br />

Example<br />

class A<br />

{<br />

const int size = 10; // must be static const int size = 10;<br />

int a[size];<br />

};<br />

3.5.6 Specialization of nonmember function templates<br />

As an extension, it is permitted to specify a storage class on a specialization of a<br />

nonmember function template.<br />

3.5.7 Type conversions<br />

Type conversion between a pointer to an extern "C" function and a pointer to an extern<br />

"C++" function is permitted.<br />

Example<br />

extern "C" void f();<br />

void (*pf)() = &f;<br />

// f’s type has extern "C" linkage<br />

// pf points to an extern "C++" function<br />

// error unless implicit conversion is allowed<br />

3-18 Copyright © 2007-2010 <strong>ARM</strong>. All rights reserved. <strong>ARM</strong> DUI 0348C<br />

Non-Confidential,<br />

ID101213

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!