Thursday, October 13, 2016

Digest for comp.lang.c++@googlegroups.com - 6 updates in 3 topics

"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 13 04:07PM -0700

On Thursday, October 13, 2016 at 5:38:17 PM UTC-4, jacobnavia wrote:
> [snip]
 
Jacob, you are making assumptions about things which are incorrect. You
begin with your own personal ideas about how things are, and then look to
how the Bible does not align with your thinking. If you are interested
in learning the truth, begin with the questions:
 
Is the Bible true? (general mindset)
What does it say or what claim does it make?
 
Then investigate what it says to see if it's plausible. If you pursue
the truth rigorously, you'll find it is. If you don't pursue the truth
rigorously, you'll find the enemy of God standing right there ready to
lead you into all falseness, leading you into whatever you will
personally believe in so as to give you some pseudo-confidence that you
are correct, when in fact you are wrong.
 
All I ask is that you personally investigate and seek the truth rigorously,
with a full and honest effort, and you will find it.
 
Best regards,
Rick C. Hodgin
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Oct 13 04:19PM -0700

On Thursday, October 13, 2016 at 5:35:33 PM UTC-4, Chris M. Thomasson wrote:
> beginning, and no end. It was never created and will never die.
 
> Oh well, call me crazy...
 
> ;^)
 
I have theories about how our universe physically operates as by God's
design as well. It doesn't mean I'm right. It just means I have been
given a mind by God and am able to consider such things.
 
I desire to know the truth, and I put it before God, and I move forward
(mostly in the waiting, but that's okay because we're told there are
things we won't ever know on this side of death, but on the other side
all things will be revealed to us -- verse 12).
 
http://biblehub.com/kjv/1_corinthians/13.htm
 
9 For we know in part, and we prophesy in part.
10 But when that which is perfect is come, then that which is in
part shall be done away.
11 When I was a child, I spake as a child, I understood as a child,
I thought as a child: but when I became a man, I put away
childish things.
12 For now we see through a glass, darkly; but then face to face:
now I know in part; but then shall I know even as also I am known.
13 And now abideth faith, hope, charity, these three; but the greatest
of these is charity.
 
We do not know all things here because of sin, and what sin has done to
us and this world. On the other side of death, we will be stripped from
sin, but the things we did here (with regards to Jesus Christ, as well as
our physical acts and behaviors, words and philosophies) will be pulled
from the books they were written into. For Christians our works will be
tested by fire and for those things which remain we shall receive a
reward. For non-Christians, the books are used only to condemn as there
will be no rewards found in any acts no matter how magnanimous or
selfless they might be. All people who do not receive Jesus Christ as
Lord and Savior abide in sin, and their punishment is already before
them:
 
http://biblehub.com/kjv/john/3-18.htm
 
18 He that believeth on him is not condemned: but he that believeth
not is condemned already, because he hath not believed in the name
of the only begotten Son of God.
 
Why? Because Jesus Christ is truth (John 14:6). All who reject Him are
literally rejecting truth, and embracing the lie:
 
http://biblehub.com/kjv/revelation/22-15.htm
 
15 For without [outside of Heaven] are dogs, and sorcerers, and
whoremongers, and murderers, and idolaters, and whosoever
loveth and maketh a lie.
 
We each get to choose.
 
"You must choose, but choose wisely."
https://www.youtube.com/watch?v=oF2UrYSDb3k
 
And if you choose to be forgiven by Jesus Christ:
 
"You have chosen wisely."
https://www.youtube.com/watch?v=-_IlNbsILLE
 
Best regards,
Rick C. Hodgin
"Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com>: Oct 13 11:49PM +0200

On 13.10.2016 23:24, Stefan Ram wrote:
> In a video someone said, there was no small-vector optimization
> anymore. Some requirement of C++11 or C++14 (inadvertently?) made it
> impossible.
 
Yes, that iterators and references remain valid and refer to the same
items after a swap.
 
Also, that a swap doesn't copy or swap or move individual items.
 
I.e. swap really means swapping buffers, not just buffer contents.
 
• • •
 
C++11 §23.2.1/8 (a.k.a. container.requirements.general/8):
 
"The expression a.swap(b), for containers a and b of a standard
container type other than array, shall exchange the values of a and b
without invoking any move, copy, or swap operations on the individual
container elements. Any Compare, Pred, or Hash objects belonging to a
and b shall be swappable and shall be exchanged by unqualified calls to
non-member swap. If
allocator_traits<allocator_type>::propagate_on_container_swap::value is
true, then the allocators of a and b shall also be exchanged using an
unqualified call to non-member swap. Otherwise, they shall not be
swapped, and the behavior is undefined unless a.get_allocator() ==
b.get_allocator(). Every iterator referring to an element in one
container before the swap shall refer to the same element in the other
container after the swap. It is unspecified whether an iterator with
value a.end() before the swap will have value b.end() after the swap.
"
 
 
> #include <string>
 
> int main() { ::std::basic_string< double > s{ 1.2, 3.6 }; ::std::cout
> << s.at( 0 )<< '\n'; }
 
Well, in order to properly specialize `std::basic_string` you should
provide a corresponding `std::char_traits`. That doesn't make sense
here. And from that you can conclude, that `std::basic_string` was not
made for this.
 
I'd simply use a raw array, or possibly a `std::array`.
 
If you want the predictable/reliable range checking of `at` you can just
code up a little helper function for indexing.
 
 
Cheers & hth.,
 
- Alf
Mr Flibble <flibbleREMOVETHISBIT@i42.co.uk>: Oct 13 11:05PM +0100

On 13/10/2016 22:49, Alf P. Steinbach wrote:
 
> I'd simply use a raw array, or possibly a `std::array`.
 
> If you want the predictable/reliable range checking of `at` you can just
> code up a little helper function for indexing.
 
Boost has a small-vector optimization container; I have also created one
(neolib::vecarray).
 
/Flibble
red floyd <no.spam@its.invalid>: Oct 13 04:12PM -0700

On 10/13/2016 2:24 PM, Stefan Ram wrote:
 
> int main()
> { ::std::basic_string< double > s{ 1.2, 3.6 };
> ::std::cout << s.at( 0 )<< '\n'; }
 
#include <array>
#include <iostream>
 
int main()
{
::std::array<double,2> arr{1.2, 3.6};
for (auto d : arr)
::std::cout << d << '\n';
}
Daniel <danielaparker@gmail.com>: Oct 12 07:03PM -0700

On Wednesday, October 12, 2016 at 4:25:54 PM UTC-4, Öö Tiib wrote:
> [the Bible] makes several good points.
> Also several bad points. Whatever. In average it is a good book.
 
The Sermon on the Mount is good.
 
1 "Judge not, that ye be not judged.
 
2 For with what judgment ye judge, ye shall be judged: and with what measure
ye mete, it shall be measured to you again.
 
3 And why beholdest thou the mote that is in thy brother's eye, but considerest
not the beam that is in thine own eye?"
 
Matthew 7:1-3
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: