File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 6
6
#ifndef BITCOIN_SCRIPT_SCRIPT_H
7
7
#define BITCOIN_SCRIPT_SCRIPT_H
8
8
9
+ #include < attributes.h>
9
10
#include < crypto/common.h>
10
11
#include < prevector.h>
11
12
#include < serialize.h>
@@ -438,23 +439,23 @@ class CScript : public CScriptBase
438
439
/* * Delete non-existent operator to defend against future introduction */
439
440
CScript& operator <<(const CScript& b) = delete ;
440
441
441
- CScript& operator <<(int64_t b) { return push_int64 (b); }
442
+ CScript& operator <<(int64_t b) LIFETIMEBOUND { return push_int64 (b); }
442
443
443
- CScript& operator <<(opcodetype opcode)
444
+ CScript& operator <<(opcodetype opcode) LIFETIMEBOUND
444
445
{
445
446
if (opcode < 0 || opcode > 0xff )
446
447
throw std::runtime_error (" CScript::operator<<(): invalid opcode" );
447
448
insert (end (), (unsigned char )opcode);
448
449
return *this ;
449
450
}
450
451
451
- CScript& operator <<(const CScriptNum& b)
452
+ CScript& operator <<(const CScriptNum& b) LIFETIMEBOUND
452
453
{
453
454
*this << b.getvch ();
454
455
return *this ;
455
456
}
456
457
457
- CScript& operator <<(const std::vector<unsigned char >& b)
458
+ CScript& operator <<(const std::vector<unsigned char >& b) LIFETIMEBOUND
458
459
{
459
460
if (b.size () < OP_PUSHDATA1)
460
461
{
You can’t perform that action at this time.
0 commit comments