mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
54 lines
1.2 KiB
C++
54 lines
1.2 KiB
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef INLINE_CTOR_H_
|
|
#define INLINE_CTOR_H_
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
class InlineCtorsArentOKInHeader {
|
|
public:
|
|
InlineCtorsArentOKInHeader() {}
|
|
~InlineCtorsArentOKInHeader() {}
|
|
|
|
private:
|
|
std::vector<int> one_;
|
|
std::vector<std::string> two_;
|
|
};
|
|
|
|
class DeletedMembersInHeaderAreOKThough {
|
|
public:
|
|
DeletedMembersInHeaderAreOKThough() = delete;
|
|
~DeletedMembersInHeaderAreOKThough() = delete;
|
|
DeletedMembersInHeaderAreOKThough(const DeletedMembersInHeaderAreOKThough&) =
|
|
delete;
|
|
|
|
private:
|
|
std::vector<int> one_;
|
|
std::vector<std::string> two_;
|
|
};
|
|
|
|
class ExplicitlyInlinedIsAlsoOK {
|
|
ExplicitlyInlinedIsAlsoOK();
|
|
~ExplicitlyInlinedIsAlsoOK();
|
|
ExplicitlyInlinedIsAlsoOK(const ExplicitlyInlinedIsAlsoOK&);
|
|
|
|
private:
|
|
std::vector<int> one_;
|
|
std::vector<std::string> two_;
|
|
};
|
|
|
|
inline ExplicitlyInlinedIsAlsoOK::ExplicitlyInlinedIsAlsoOK() {
|
|
}
|
|
|
|
inline ExplicitlyInlinedIsAlsoOK::~ExplicitlyInlinedIsAlsoOK() {
|
|
}
|
|
|
|
inline ExplicitlyInlinedIsAlsoOK::ExplicitlyInlinedIsAlsoOK(
|
|
const ExplicitlyInlinedIsAlsoOK&) {
|
|
}
|
|
|
|
#endif // INLINE_CTOR_H_
|