arduino / arduino/ArduinoCore-API

class String constant opeator [] should return const reference!

オープン
#48 コメント 5 件 リアクション 0 件 担当者 1 名 @cmaglie が担当を希望しています GitHub で見る
主要言語
C++
スター
306
フォーク
150
PR マージ指標
30日以内にマージされた PR はありません

説明

commonly people want get the buffer ptr by a constant String object like below:
const String &str;
const char *p = &str[0];

BUT now the constant operator [] returns a temp char object, i don't think it is better.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。