Subscribe

higepon blog

2009-03-17

UC マクロ修正

mosh
#define UC(a) (reinterpret_cast<const ucs4char*>(L##""a))
=>
#define UC_(x) L ## x
#define UC(x) reinterpret_cast<const ucs4char*>(UC_(x))

herumi さんのアドバイスにより UC マクロを修正。
元の定義だと、優先順位の関係で L "" という UTF32 文字列リテラルと、x という ASCII 文字列リテラルの連結と見なされる場合があるのだった。

higepon 2009-03-17 17:52

Bookmark this entry on Hatena::Bookmark
Tweet
Remove all ads
  • Read more
Write a comment
« 今日の英語 - Domain Driven Desgin Quic… Concurrency Control in B+ Tree - Datab… »
Profile
id:higepon id:higepon
Subscribed unsubscribe Subscribe Subscribe
About this blog
Search
Links
  • Hatena Blog
  • ブログをはじめる
  • Weekly Hatena Blog
  • Hatena Blog Pro
Recent Entries
  • Machine Learning Design Patterns
  • MATHEMATICS FOR MACHINE LEARNING の読書記録
  • Indoor Location & Navigation コンペ振り返り
  • Visual Studio Code キーバインディング微調整
  • Riiid コンペ復習 - maskingなど
Archive

Start using Hatena Blog!

higepon is using Hatena Blog. Would you like to try it too?

Start using Hatena Blog (Free)
What is Hatena Blog?
higepon blog higepon blog

Powered by Hatena Blog | ブログを報告する

Quote saved.

Login to quote this blog

Failed to save quote. Please try again later.

You cannot quote because this article is private.

Subscribed unsubscribe Subscribe Subscribe