2009-01-20から1日間の記事一覧
文字列リテラルをテンプレート引数で渡したい - Faith and Brave - C++で遊ぼう class Hoge(string s){ immutable string str = s; } alias Hoge!("hello") HogeHello; enum e = HogeHello.str; // コンパイル時に取得できます void main(){} アキラさんはD…
文字列リテラルをテンプレート引数で渡したい - Faith and Brave - C++で遊ぼう class Hoge(string s){ immutable string str = s; } alias Hoge!("hello") HogeHello; enum e = HogeHello.str; // コンパイル時に取得できます void main(){} アキラさんはD…