===========================================================================
y\ t gz@C++ castT|[g}NuANAlbNXv
y 쌠 z@YumemiYougie-Project
yo[Wz@1.00
yΉ  z@Windows 98SE/Me/2000/XP
yKv\tgz@G Ver6.50ȏ
y      z@t[\tg
===========================================================================

@\Tv

    ϐLXg鏑̑}.
    (int)reg -> ****_cast<int>reg ϊ.
    ɓĂLXg^Cv̕ύX

    }cast^Cv̓j[őIł܂.
    ͈͑IĎsƑI͈͂ʂŊăLXg.




{
    int a = m_iTest + 123;              --->          int a = static_cast<>(m_iTest) + 123;
                 ̈ʒuŎs(static_castI)
  }̃J[\ʒu<>̊ԂȂ̂ł̂܂܃LXg^͂܂.

  (m_iTest + 123)Ƃ悤ɑŜ肽͔͈͑IĎs܂.
    int a = m_iTest + 123;              --->          int a = static_cast<>(m_iTest + 123);
            ^^^^^^^^^^^^^    ͈͑IĎs


  sP̃l[Xy[Xe\bhȂǂ͈ꏏɊ邪Ả̃oϐȂǂ͊Ȃ.

    CCLASS::CMethod()->m_iValue        --->          static_cast<>(CCLASS::CMethod())->m_iValue
                 ̈ʒuŎs

  Ŝ肽ꍇ͈ȉ̈ʒuŎs
    CCLASS::CMethod()->m_iValue        --->          static_cast<>(CCLASS::CMethod()->m_iValue)
                              ̈ʒuŎs

  LXg鎖͂肦Ȃ̂ł
  #CastStructRange  1 ɂƕKԉ܂ō~ĂLXg܂.

̕ϊ
    int a = (int)fValue;            --->          int a = static_cast<int>(fValue);
                     ̈ʒuŎs

    LXg͈͂Ɋ܂܂̂͂̂܂ܓ܂
    int a = (int)(fValue + 123.f);  --->          int a = static_cast<int>(fValue + 123.f);
                     ̈ʒuŎs

cast̓꒼
  xꂽLXgʂ̃^Cvɓ꒼Ƃ͓ϐ̏ォ܂****_cast̏Ŏs܂.
    static_cast<int>(test)          --->          reinterpret_cast<int>(test)
            or       ̈ʒuŎs
  ɓĂLXg̃^Cv̓Xg珜O܂.

~
  j[JĂۂESCL[ȂǂŃLZł܂(LZ\ȃ{^͏Gۃj[̎dlɏ).

----------------------------------------------------------------------------------------------
E@YumemiYougie-Project
	\tgEFA̓t[ł쌠͕Ă܂B

⍇
@HomePage:http://yyp.jp
@e-mail  :yyp000@gmail.com

