GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: disallow copy/move fns/constructors · nodejs/node@83ff7be

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • debug_utils-inl.h
    • util.h
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/debug_utils-inl.h‎

Copy file name to clipboardExpand all lines: src/debug_utils-inl.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ struct ToStringHelper {
5050
template <unsigned BASE_BITS,
5151
typename T,
5252
typename = std::enable_if_t<!std::is_integral_v<T>>>
53-
static std::string BaseConvert(T value) {
53+
static std::string BaseConvert(T& value) { // NOLINT(runtime/references)
5454
return Convert(std::forward<T>(value));
5555
}
5656
};
Collapse file

‎src/util.h‎

Copy file name to clipboardExpand all lines: src/util.h
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,11 @@ constexpr size_t strsize(const T (&)[N]) {
388388
template <typename T, size_t kStackStorageSize = 1024>
389389
class MaybeStackBuffer {
390390
public:
391+
// Disallow copy constructor
392+
MaybeStackBuffer(const MaybeStackBuffer&) = delete;
393+
// Disallow copy assignment operator
394+
MaybeStackBuffer& operator=(const MaybeStackBuffer& other) = delete;
395+
391396
const T* out() const {
392397
return buf_;
393398
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.