Topic: final classes


Author: Christ-Jan Wijtmans <cj.wijtmans@gmail.com>
Date: Sun, 16 Mar 2014 04:00:31 -0700 (PDT)
Raw View
------=_Part_4431_26442450.1394967631537
Content-Type: text/plain; charset=UTF-8

I would like to see the final keyword implemented that restricts classes
from being derived, like in java.
Right now we can ensure classes are derived by making the constructor
protected or by adding abstract virtuals.

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_4431_26442450.1394967631537
Content-Type: text/html; charset=UTF-8

<div dir="ltr">I would like to see the final keyword implemented that restricts classes from being derived, like in java.<br>Right now we can ensure classes are derived by making the constructor protected or by adding abstract virtuals.</div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:std-proposals+unsubscribe@isocpp.org">std-proposals+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href="mailto:std-proposals@isocpp.org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href="http://groups.google.com/a/isocpp.org/group/std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/</a>.<br />

------=_Part_4431_26442450.1394967631537--

.


Author: David Krauss <potswa@gmail.com>
Date: Sun, 16 Mar 2014 19:02:43 +0800
Raw View
--Apple-Mail=_6EFF4E21-9E97-4AC4-B324-6C36CE8CC8E7
Content-Type: text/plain; charset=ISO-8859-1

This feature was added in C++11. Please refer to a copy of the standard.

On 2014-03-16, at 7:00 PM, Christ-Jan Wijtmans <cj.wijtmans@gmail.com> wrote:

> I would like to see the final keyword implemented that restricts classes from being derived, like in java.
> Right now we can ensure classes are derived by making the constructor protected or by adding abstract virtuals.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--Apple-Mail=_6EFF4E21-9E97-4AC4-B324-6C36CE8CC8E7
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=ISO-8859-1

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html charset=
=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; -webkit-nbsp-=
mode: space; -webkit-line-break: after-white-space;">This feature was added=
 in C++11. Please refer to a copy of the standard.<div><br><div><div>On 201=
4&ndash;03&ndash;16, at 7:00 PM, Christ-Jan Wijtmans &lt;<a href=3D"mailto:=
cj.wijtmans@gmail.com">cj.wijtmans@gmail.com</a>&gt; wrote:</div><br class=
=3D"Apple-interchange-newline"><blockquote type=3D"cite"><div dir=3D"ltr">I=
 would like to see the final keyword implemented that restricts classes fro=
m being derived, like in java.<br>Right now we can ensure classes are deriv=
ed by making the constructor protected or by adding abstract virtuals.</div=
><div><br class=3D"webkit-block-placeholder"></div>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to the Google Groups "=
ISO C++ Standard - Future Proposals" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br>
</blockquote></div><br></div></body></html>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--Apple-Mail=_6EFF4E21-9E97-4AC4-B324-6C36CE8CC8E7--

.


Author: Christ-Jan Wijtmans <cj.wijtmans@gmail.com>
Date: Sun, 16 Mar 2014 04:12:08 -0700 (PDT)
Raw View
------=_Part_51_22543134.1394968328559
Content-Type: text/plain; charset=UTF-8

Hi, i am sorry for the confusion. I grew up with C++03  and my IDE did not
color the final keyword and i have not learned everything of C++11 yet.

Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:
>
> I would like to see the final keyword implemented that restricts classes
> from being derived, like in java.
> Right now we can ensure classes are derived by making the constructor
> protected or by adding abstract virtuals.
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_51_22543134.1394968328559
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi, i am sorry for the confusion. I grew up with C++03 &nb=
sp;and my IDE did not color the final keyword and i have not learned everyt=
hing of C++11 yet.<br><br>Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Ch=
rist-Jan Wijtmans:<blockquote class=3D"gmail_quote" style=3D"margin: 0;marg=
in-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"=
ltr">I would like to see the final keyword implemented that restricts class=
es from being derived, like in java.<br>Right now we can ensure classes are=
 derived by making the constructor protected or by adding abstract virtuals=
..</div></blockquote></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_51_22543134.1394968328559--

.


Author: Christ-Jan Wijtmans <cj.wijtmans@gmail.com>
Date: Sun, 16 Mar 2014 04:38:28 -0700 (PDT)
Raw View
------=_Part_1271_9092045.1394969908587
Content-Type: text/plain; charset=UTF-8

I just tried to compile a class with the final keyword, it gave an error. I
am suing GCC 4.8.2

Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:
>
> I would like to see the final keyword implemented that restricts classes
> from being derived, like in java.
> Right now we can ensure classes are derived by making the constructor
> protected or by adding abstract virtuals.
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_1271_9092045.1394969908587
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">I just tried to compile a class with the final keyword, it=
 gave an error. I am suing GCC 4.8.2<br><br>Op zondag 16 maart 2014 12:00:3=
1 UTC+1 schreef Christ-Jan Wijtmans:<blockquote class=3D"gmail_quote" style=
=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: =
1ex;"><div dir=3D"ltr">I would like to see the final keyword implemented th=
at restricts classes from being derived, like in java.<br>Right now we can =
ensure classes are derived by making the constructor protected or by adding=
 abstract virtuals.</div></blockquote></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_1271_9092045.1394969908587--

.


Author: inkwizytoryankes@gmail.com
Date: Sun, 16 Mar 2014 05:15:59 -0700 (PDT)
Raw View
------=_Part_4698_3292126.1394972159646
Content-Type: text/plain; charset=UTF-8

with `-std=c++11` or `-std=gnu++11`?

On Sunday, March 16, 2014 12:38:28 PM UTC+1, Christ-Jan Wijtmans wrote:
>
> I just tried to compile a class with the final keyword, it gave an error.
> I am suing GCC 4.8.2
>
> Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:
>>
>> I would like to see the final keyword implemented that restricts classes
>> from being derived, like in java.
>> Right now we can ensure classes are derived by making the constructor
>> protected or by adding abstract virtuals.
>>
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_4698_3292126.1394972159646
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">with `<code>-std=3Dc++11</code>` or `<code>-std=3Dgnu++11<=
/code>`?<br><br>On Sunday, March 16, 2014 12:38:28 PM UTC+1, Christ-Jan Wij=
tmans wrote:<blockquote class=3D"gmail_quote" style=3D"margin: 0;margin-lef=
t: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">I=
 just tried to compile a class with the final keyword, it gave an error. I =
am suing GCC 4.8.2<br><br>Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Ch=
rist-Jan Wijtmans:<blockquote class=3D"gmail_quote" style=3D"margin:0;margi=
n-left:0.8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr">=
I would like to see the final keyword implemented that restricts classes fr=
om being derived, like in java.<br>Right now we can ensure classes are deri=
ved by making the constructor protected or by adding abstract virtuals.</di=
v></blockquote></div></blockquote></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_4698_3292126.1394972159646--

.


Author: Christ-Jan Wijtmans <cj.wijtmans@gmail.com>
Date: Sun, 16 Mar 2014 05:18:28 -0700 (PDT)
Raw View
------=_Part_4286_433049.1394972308481
Content-Type: text/plain; charset=UTF-8



QMAKE_CXXFLAGS += -std=gnu++11

I am guessing i should change this to c++1?


Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:
>
> I would like to see the final keyword implemented that restricts classes
> from being derived, like in java.
> Right now we can ensure classes are derived by making the constructor
> protected or by adding abstract virtuals.
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

------=_Part_4286_433049.1394972308481
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">
<pre><!--StartFragment-->QMAKE_CXXFLAGS<span style=3D" color:#c0c0c0;"> </s=
pan>+=3D<span style=3D" color:#c0c0c0;"> </span>-std=3Dgnu++11

I am guessing i should change this to c++1?<!--EndFragment--></pre><br>Op z=
ondag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:<blockquote =
class=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1p=
x #ccc solid;padding-left: 1ex;"><div dir=3D"ltr">I would like to see the f=
inal keyword implemented that restricts classes from being derived, like in=
 java.<br>Right now we can ensure classes are derived by making the constru=
ctor protected or by adding abstract virtuals.</div></blockquote></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

------=_Part_4286_433049.1394972308481--

.


Author: Christ-Jan Wijtmans <cj.wijtmans@gmail.com>
Date: Sun, 16 Mar 2014 13:21:40 +0100
Raw View
--089e014943085ea93704f4b858ec
Content-Type: text/plain; charset=UTF-8

i tried -std=c++11, the final keyword still errors.


Live long and prosper,

Christ-Jan Wijtmans
https://github.com/cjwijtmans
http://facebook.com/cj.wijtmans
http://twitter.com/cjwijtmans


On Sun, Mar 16, 2014 at 1:18 PM, Christ-Jan Wijtmans
<cj.wijtmans@gmail.com>wrote:

> QMAKE_CXXFLAGS += -std=gnu++11
>
> I am guessing i should change this to c++1?
>
>
> Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:
>
>> I would like to see the final keyword implemented that restricts classes
>> from being derived, like in java.
>>
>> Right now we can ensure classes are derived by making the constructor
>> protected or by adding abstract virtuals.
>>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--089e014943085ea93704f4b858ec
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">i tried -std=3Dc++11, the final keyword still errors.</div=
><div class=3D"gmail_extra"><br clear=3D"all"><div><div dir=3D"ltr"><br>Liv=
e long and prosper,<br><br>Christ-Jan Wijtmans<br><a href=3D"https://github=
..com/cjwijtmans" target=3D"_blank">https://github.com/cjwijtmans</a><br>
<a href=3D"http://facebook.com/cj.wijtmans" target=3D"_blank">http://facebo=
ok.com/cj.wijtmans</a><br><a href=3D"http://twitter.com/cjwijtmans" target=
=3D"_blank">http://twitter.com/cjwijtmans</a></div></div>
<br><br><div class=3D"gmail_quote">On Sun, Mar 16, 2014 at 1:18 PM, Christ-=
Jan Wijtmans <span dir=3D"ltr">&lt;<a href=3D"mailto:cj.wijtmans@gmail.com"=
 target=3D"_blank">cj.wijtmans@gmail.com</a>&gt;</span> wrote:<br><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex">
<div dir=3D"ltr">
<pre>QMAKE_CXXFLAGS<span style=3D"color:#c0c0c0"> </span>+=3D<span style=3D=
"color:#c0c0c0"> </span>-std=3Dgnu++11

I am guessing i should change this to c++1?</pre><div class=3D""><br>Op zon=
dag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:</div><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1=
px #ccc solid;padding-left:1ex">
<div dir=3D"ltr">I would like to see the final keyword implemented that res=
tricts classes from being derived, like in java.<div><div class=3D"h5"><br>=
Right now we can ensure classes are derived by making the constructor prote=
cted or by adding abstract virtuals.</div>
</div></div></blockquote></div><div class=3D"HOEnZb"><div class=3D"h5">

<p></p>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to a topic in the Goog=
le Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/=
a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI/unsubscribe" target=3D"_blan=
k">https://groups.google.com/a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI=
/unsubscribe</a>.<br>

To unsubscribe from this group and all its topics, send an email to <a href=
=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_blank">std-prop=
osals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--089e014943085ea93704f4b858ec--

.


Author: Philipp Maximilian Stephani <p.stephani2@gmail.com>
Date: Sun, 16 Mar 2014 15:14:17 +0000
Raw View
--bcaec51ba307b83a1f04f4bac195
Content-Type: text/plain; charset=UTF-8

final has been implemented in GCC 4.7. Can you post a minimal example that
fails?

On Sun Mar 16 2014 at 13:21:42, Christ-Jan Wijtmans <cj.wijtmans@gmail.com>
wrote:

> i tried -std=c++11, the final keyword still errors.
>
>
> Live long and prosper,
>
> Christ-Jan Wijtmans
> https://github.com/cjwijtmans
> http://facebook.com/cj.wijtmans
> http://twitter.com/cjwijtmans
>
>
> On Sun, Mar 16, 2014 at 1:18 PM, Christ-Jan Wijtmans <
> cj.wijtmans@gmail.com> wrote:
>
>>  QMAKE_CXXFLAGS += -std=gnu++11
>>
>> I am guessing i should change this to c++1?
>>
>>
>> Op zondag 16 maart 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:
>>
>>> I would like to see the final keyword implemented that restricts classes
>>> from being derived, like in java.
>>>
>>> Right now we can ensure classes are derived by making the constructor
>>> protected or by adding abstract virtuals.
>>>
>>  --
>>
>> ---
>> You received this message because you are subscribed to a topic in the
>> Google Groups "ISO C++ Standard - Future Proposals" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI/unsubscribe
>> .
>> To unsubscribe from this group and all its topics, send an email to
>> std-proposals+unsubscribe@isocpp.org.
>>
>
>> To post to this group, send email to std-proposals@isocpp.org.
>> Visit this group at
>> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>>
>  --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--bcaec51ba307b83a1f04f4bac195
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

final has been implemented in GCC 4.7. Can you post a minimal example that =
fails?<br><br><div>On Sun Mar 16 2014 at 13:21:42, Christ-Jan Wijtmans &lt;=
<a href=3D"mailto:cj.wijtmans@gmail.com">cj.wijtmans@gmail.com</a>&gt; wrot=
e:</div>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex"><div dir=3D"ltr">i tried -std=3Dc++11, the f=
inal keyword still errors.</div><div class=3D"gmail_extra"><br clear=3D"all=
"><div><div dir=3D"ltr">
<br>Live long and prosper,<br><br>Christ-Jan Wijtmans<br><a href=3D"https:/=
/github.com/cjwijtmans" target=3D"_blank">https://github.com/cjwijtmans</a>=
<br>
<a href=3D"http://facebook.com/cj.wijtmans" target=3D"_blank">http://facebo=
ok.com/cj.wijtmans</a><br><a href=3D"http://twitter.com/cjwijtmans" target=
=3D"_blank">http://twitter.com/cjwijtmans</a></div></div>
<br><br><div class=3D"gmail_quote"></div></div><div class=3D"gmail_extra"><=
div class=3D"gmail_quote">On Sun, Mar 16, 2014 at 1:18 PM, Christ-Jan Wijtm=
ans <span dir=3D"ltr">&lt;<a href=3D"mailto:cj.wijtmans@gmail.com" target=
=3D"_blank">cj.wijtmans@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div class=3D"gmail_extra"><div =
class=3D"gmail_quote">
<div dir=3D"ltr">
<pre>QMAKE_CXXFLAGS<span style=3D"color:#c0c0c0"> </span>+=3D<span style=3D=
"color:#c0c0c0"> </span>-std=3Dgnu++11

I am guessing i should change this to c++1?</pre><div><br>Op zondag 16 maar=
t 2014 12:00:31 UTC+1 schreef Christ-Jan Wijtmans:</div><blockquote class=
=3D"gmail_quote" style=3D"margin:0;margin-left:0.8ex;border-left:1px #ccc s=
olid;padding-left:1ex">

<div dir=3D"ltr">I would like to see the final keyword implemented that res=
tricts classes from being derived, like in java.<div><div><br>Right now we =
can ensure classes are derived by making the constructor protected or by ad=
ding abstract virtuals.</div>

</div></div></blockquote></div></div></div></blockquote><div><div><blockquo=
te class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc so=
lid;padding-left:1ex"><div class=3D"gmail_extra"><div class=3D"gmail_quote"=
>

<p></p>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to a topic in the Goog=
le Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/=
a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI/unsubscribe" target=3D"_blan=
k">https://groups.google.com/a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI=
/unsubscribe</a>.<br>


To unsubscribe from this group and all its topics, send an email to <a href=
=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_blank">std-prop=
osals+unsubscribe@isocpp.org</a>.</div></div></blockquote></div></div><div>
<div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le=
ft:1px #ccc solid;padding-left:1ex"><div class=3D"gmail_extra"><div class=
=3D"gmail_quote"><br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div></div>

<p></p>

-- <br>
<br>
--- <br>
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org" target=3D"_=
blank">std-proposals+unsubscribe@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org" target=3D"_blank">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</blockquote>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--bcaec51ba307b83a1f04f4bac195--

.


Author: Ville Voutilainen <ville.voutilainen@gmail.com>
Date: Sun, 16 Mar 2014 17:16:19 +0200
Raw View
On 16 March 2014 17:14, Philipp Maximilian Stephani
<p.stephani2@gmail.com> wrote:
> final has been implemented in GCC 4.7. Can you post a minimal example that
> fails?

This is not an implementation support forum. If using final fails with
gcc 4.8 with
--std=c++11, he's putting the keyword into the wrong place. Read
http://en.wikipedia.org/wiki/C%2B%2B11#Explicit_overrides_and_final
and stop the off-topic noise, please.

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.


Author: Christ-Jan Wijtmans <cj.wijtmans@gmail.com>
Date: Sun, 16 Mar 2014 16:42:04 +0100
Raw View
--001a11347e9e11d20b04f4bb2522
Content-Type: text/plain; charset=UTF-8

Right, what i suggested is different. Placing the final keyword on a class
not a virtual function.


Live long and prosper,

Christ-Jan Wijtmans
https://github.com/cjwijtmans
http://facebook.com/cj.wijtmans
http://twitter.com/cjwijtmans


On Sun, Mar 16, 2014 at 4:16 PM, Ville Voutilainen <
ville.voutilainen@gmail.com> wrote:

> On 16 March 2014 17:14, Philipp Maximilian Stephani
> <p.stephani2@gmail.com> wrote:
> > final has been implemented in GCC 4.7. Can you post a minimal example
> that
> > fails?
>
> This is not an implementation support forum. If using final fails with
> gcc 4.8 with
> --std=c++11, he's putting the keyword into the wrong place. Read
> http://en.wikipedia.org/wiki/C%2B%2B11#Explicit_overrides_and_final
> and stop the off-topic noise, please.
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "ISO C++ Standard - Future Proposals" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI/unsubscribe
> .
> To unsubscribe from this group and all its topics, send an email to
> std-proposals+unsubscribe@isocpp.org.
> To post to this group, send email to std-proposals@isocpp.org.
> Visit this group at
> http://groups.google.com/a/isocpp.org/group/std-proposals/.
>

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

--001a11347e9e11d20b04f4bb2522
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Right, what i suggested is different. Placing the final ke=
yword on a class not a virtual function.</div><div class=3D"gmail_extra"><b=
r clear=3D"all"><div><div dir=3D"ltr"><br>Live long and prosper,<br><br>Chr=
ist-Jan Wijtmans<br>
<a href=3D"https://github.com/cjwijtmans" target=3D"_blank">https://github.=
com/cjwijtmans</a><br><a href=3D"http://facebook.com/cj.wijtmans" target=3D=
"_blank">http://facebook.com/cj.wijtmans</a><br><a href=3D"http://twitter.c=
om/cjwijtmans" target=3D"_blank">http://twitter.com/cjwijtmans</a></div>
</div>
<br><br><div class=3D"gmail_quote">On Sun, Mar 16, 2014 at 4:16 PM, Ville V=
outilainen <span dir=3D"ltr">&lt;<a href=3D"mailto:ville.voutilainen@gmail.=
com" target=3D"_blank">ville.voutilainen@gmail.com</a>&gt;</span> wrote:<br=
><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1=
px #ccc solid;padding-left:1ex">
On 16 March 2014 17:14, Philipp Maximilian Stephani<br>
<div class=3D"">&lt;<a href=3D"mailto:p.stephani2@gmail.com">p.stephani2@gm=
ail.com</a>&gt; wrote:<br>
&gt; final has been implemented in GCC 4.7. Can you post a minimal example =
that<br>
&gt; fails?<br>
<br>
</div>This is not an implementation support forum. If using final fails wit=
h<br>
gcc 4.8 with<br>
--std=3Dc++11, he&#39;s putting the keyword into the wrong place. Read<br>
<a href=3D"http://en.wikipedia.org/wiki/C%2B%2B11#Explicit_overrides_and_fi=
nal" target=3D"_blank">http://en.wikipedia.org/wiki/C%2B%2B11#Explicit_over=
rides_and_final</a><br>
and stop the off-topic noise, please.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
--<br>
<br>
---<br>
You received this message because you are subscribed to a topic in the Goog=
le Groups &quot;ISO C++ Standard - Future Proposals&quot; group.<br>
To unsubscribe from this topic, visit <a href=3D"https://groups.google.com/=
a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI/unsubscribe" target=3D"_blan=
k">https://groups.google.com/a/isocpp.org/d/topic/std-proposals/-2xoGNtxRpI=
/unsubscribe</a>.<br>

To unsubscribe from this group and all its topics, send an email to <a href=
=3D"mailto:std-proposals%2Bunsubscribe@isocpp.org">std-proposals+unsubscrib=
e@isocpp.org</a>.<br>
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br>
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/" target=3D"_blank">http://groups.google.com/a/isocpp.org/gro=
up/std-proposals/</a>.<br>
</div></div></blockquote></div><br></div>

<p></p>

-- <br />
<br />
--- <br />
You received this message because you are subscribed to the Google Groups &=
quot;ISO C++ Standard - Future Proposals&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:std-proposals+unsubscribe@isocpp.org">std-proposa=
ls+unsubscribe@isocpp.org</a>.<br />
To post to this group, send email to <a href=3D"mailto:std-proposals@isocpp=
..org">std-proposals@isocpp.org</a>.<br />
Visit this group at <a href=3D"http://groups.google.com/a/isocpp.org/group/=
std-proposals/">http://groups.google.com/a/isocpp.org/group/std-proposals/<=
/a>.<br />

--001a11347e9e11d20b04f4bb2522--

.


Author: Ville Voutilainen <ville.voutilainen@gmail.com>
Date: Sun, 16 Mar 2014 17:43:03 +0200
Raw View
On 16 March 2014 17:42, Christ-Jan Wijtmans <cj.wijtmans@gmail.com> wrote:
> Right, what i suggested is different. Placing the final keyword on a class
> not a virtual function.


Can you read? The article has examples of both.

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.


Author: Gabriel Dos Reis <gdr@axiomatics.org>
Date: Wed, 19 Mar 2014 11:22:21 -0700
Raw View
Christ-Jan Wijtmans <cj.wijtmans@gmail.com> writes:

| I just tried to compile a class with the final keyword, it gave an
| error. I am suing GCC 4.8.2

'final' is not a keyword.

An up-to-date C++ text might help getting some of the facts straight, in
case you have to report a bug or make a demand.

-- Gaby

--

---
You received this message because you are subscribed to the Google Groups "ISO C++ Standard - Future Proposals" group.
To unsubscribe from this group and stop receiving emails from it, send an email to std-proposals+unsubscribe@isocpp.org.
To post to this group, send email to std-proposals@isocpp.org.
Visit this group at http://groups.google.com/a/isocpp.org/group/std-proposals/.

.